Add Nextcloud Native Upload Backend
@e-alfred With the problems of updating this app every Nextcloud Update, we should implement an alternative to the current Flow.js backend causing these problems. Nextcloud offers a native API for chunked uploads, which is used for the default Nextcloud Files upload. We can combine that with our UI and extra Features (Pause, Abort per FIle ...) for the best of both worlds.
I will probably have time for this next week.
Links:
:D
"next week" was a bit too optimistic, but i will start today, lets see how long this will take, I still have lot of other software projects :)
I am documenting my findings during development, so i don't forget something :)
- We don't seem to be able to use the Nextcloud default Upload Client, as it doesn't get loaded into the OC namespace if the current app isn't files, but that is not a problem as it is to specific for the use-case anyway
- That means we need to write the DavUploader ourselves or use a library
- For that we need a authorization token, which we can get using the @nextcloud/auth library
I found this kind of software. How can it be of help? gitlab.com/joendres/filelink-nextcloud#cloud-filelink-for-nextcloud-and-owncloud
I am sorry if I am overstepping.
I found this kind of software. How can it be of help? gitlab.com/joendres/filelink-nextcloud#cloud-filelink-for-nextcloud-and-owncloud
It could help a bit for reference, but i don't think the code can be reused directly.
I am sorry if I am overstepping.
No worries :)
I guess I can be glad that I didn't have much time for this recently, as nextcloud is currently working on a library, that makes implementing this far easier. It is part of their long-term effort to port the files app to vue.
https://github.com/nextcloud/nextcloud-upload