Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nextcloud Native Upload Backend #488

Open
JonathanTreffler opened this issue Mar 14, 2022 · 6 comments
Open

Add Nextcloud Native Upload Backend #488

JonathanTreffler opened this issue Mar 14, 2022 · 6 comments
Assignees
Labels
dependencies Pull requests that update a dependency file enhancement

Comments

@JonathanTreffler
Copy link
Collaborator

JonathanTreffler commented Mar 14, 2022

@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 JonathanTreffler added enhancement dependencies Pull requests that update a dependency file labels Mar 14, 2022
@JonathanTreffler JonathanTreffler self-assigned this Mar 14, 2022
@lockdlock
Copy link

lockdlock commented Mar 29, 2022

:D

@JonathanTreffler
Copy link
Collaborator Author

"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
Copy link
Collaborator Author

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

@lockdlock
Copy link

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.

@JonathanTreffler
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement
Projects
None yet
Development

No branches or pull requests

2 participants