Content
View differences
Updated by Andreas Pfohl over 3 years ago
### Upload to this shared directory
```text
curl -u SHARE_TOKEN:SHARE_PASSWORD \
-H "Accept: application/json" \
-X PUT \
-d @/path/to/file.txt \
https://your.nextcloud.org/public.php/webdav/TARGET_FILE_NAME
```
In you case, the file is uploaded by the browser but it's the same, you put the file content in the request body.
```text
curl -u SHARE_TOKEN:SHARE_PASSWORD \
-H "Accept: application/json" \
-X PUT \
-d @/path/to/file.txt \
https://your.nextcloud.org/public.php/webdav/TARGET_FILE_NAME
```
In you case, the file is uploaded by the browser but it's the same, you put the file content in the request body.