flowupload icon indicating copy to clipboard operation
flowupload copied to clipboard

Add Nextcloud Native Upload Backend

Open JonathanTreffler opened this issue 3 years ago • 6 comments

@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:

JonathanTreffler avatar Mar 14 '22 11:03 JonathanTreffler

:D

lockdlock avatar Mar 29 '22 00:03 lockdlock

"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 :)

JonathanTreffler avatar Mar 31 '22 15:03 JonathanTreffler

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

JonathanTreffler avatar Mar 31 '22 16:03 JonathanTreffler

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.

lockdlock avatar Apr 04 '22 07:04 lockdlock

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 :)

JonathanTreffler avatar Apr 17 '22 00:04 JonathanTreffler

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

JonathanTreffler avatar Jul 01 '22 01:07 JonathanTreffler