WebDAV client javascript


How can I upload a file to a server using JavaScript + webdav?

I saw that in “Client.js” file there are some functions that are used when trying to upload / download / delete files;
There is documentation about that?

Thank you.

1 Like

Did you find how to do that? .

Hi, you can use webdav protocol to send request to the server.
I did not find any libraries to do this in javascript, but if you study the protocol you should be able to implement the functions you need, or simply do a better search on internet.
For other reasons in the end I went to an alternative solution and wrote my application in python.
For python you can easy use this https://github.com/owncloud/pyocclient.

EDIT: https://github.com/aslakhellesoy/webdavjs for js

Hi, this thread is very old but maybe you are still interested in a javascript nextcloud client.
You should give https://github.com/tentwentyfour/nextcloud-link a spin! :slight_smile: