9001 / 9001/copyparty

Open file hook

Open
#1,375 0 comments 2 reactions 1 assignee Claimed by @9001 View on GitHub
enhancement
Dominant language
Python
Stars
46.6k
Forks
1.9k
Avg merge
10d 16h
Merged PRs (30d)
5

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.