Hi, I would like to contribute functionality to allow uploading to a remote via a http request (from a browser).
I intend to accomplish this by integrating the tus standard: https://github.com/tus/tusd/blob/master/docs/usage-package.md
It has a rich ecosystem of clients making use of this functionality relatively easy.
Can anyone advise me on where in the codebase I should integrate this.
There are two parts to the tus library that I need to integrate. I have to attach the request handler to the http server instance, and I have to glue the tus.Datastore abstraction to (I am assuming) fs.Object.
I would appreciate input on this solution before I start working on it.
Edit: Investigating further there seems to be duplicate work between the
rclone serve http functionality and the
rclone --rc / rclone rcd functionality. I understand that they serve different purposes but I think it would benefit from unifying parts of it under another layer of abstraction.
Also, I found this line: github[dot]com/rclone/rclone/blob/159f2e29a89e36942e7946333e9ffa066376aa7b/fs/rc/rcserver/rcserver.go#L36
It implies that handlers might need to be registered globally rather than explicitly as part of the server initialization.