9001 / 9001/copyparty

Open file hook

未关闭
#1,375 0 条评论 2 个 reaction 已指派 1 人 已被 @9001 认领 在 GitHub 查看
enhancement
主要语言
Python
星标
46.7k
派生
1.9k
平均合并
9 天 2 小时
30 天内合并 PR
4

描述

**is your feature request related to a problem? Please describe.**
I would like to open certain files in external programs,
like for example a docx in a onlyoffice document server,
or a jupyter notebook in jupyter, or a web-viewer for 3D models.
Or a WARC-replayer for web archives

**Describe the idea / solution you'd like**
When opening a file from the webui,
copyparty could invoke a hook,
which would then run some code -
likely requiring to make a share url of some sort to allow the external program to edit it.
Getting some sort of returned url and instructing the webui to open it in a tab.

I'm not sure how this would work with webdav or sftp and whatnot, maybe it'd be fine, as long as there are proper file-locks, but I'm not really sure if there are, there would have to be some way of marking file as busy, so the other interfaces won't try to write to it or something to that effect.

Related:
#423

贡献指南

打开贡献指南

调研方向

查看 webui 中打开文件的逻辑,该逻辑可能位于 HTTP request handlers 中。该 hook 需要生成共享 URL 并处理文件锁。检查代码库中现有的文件锁定机制,了解 WebDAV 或 SFTP 等其他接口如何与文件交互。查看 issue #423 以了解相关背景。该功能需要理解服务器的架构,以便集成外部程序的启动和 URL 返回。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
api, backend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。