Upload and get share


#1

Hello.
Promote please.
How can I upload a file (C: \ 1.pdf) in owncloud with a regular http request (post / get)
for example
Https: // user: userpass@cloud2.owncloud/files/webdav.php --upload-file "C: \ 1.pdf"
or something similar.
After downloading, I want to get a link to the file.


#2

See:

https://doc.owncloud.org/server/latest/user_manual/files/access_webdav.html#accessing-files-using-curl

Afterwards you can use:

https://doc.owncloud.org/server/latest/developer_manual/core/ocs-share-api.html#create-a-new-share

to create a share and get a link for this file.


Web UI integration