Initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# Nextcloud Uploads (WebDAV)
|
||||
|
||||
## Binary Files (Audio/Video/Docs)
|
||||
```bash
|
||||
# Source .env (creds)
|
||||
source /home/openclaw/.openclaw/.env
|
||||
|
||||
# Upload (creates dirs/path)
|
||||
curl -u $NEXTCLOUD_USER:$NEXTCLOUD_TOKEN \\
|
||||
-T /local/path/to/file.wav \\
|
||||
\"$NEXTCLOUD_URL/remote.php/dav/files/$NEXTCLOUD_USER/Soren/audio-books/file.wav\" \\
|
||||
-X PUT -k --progress-bar
|
||||
|
||||
# MKCOL dir if needed (idempotent)
|
||||
curl -u $NEXTCLOUD_USER:$NEXTCLOUD_TOKEN \\
|
||||
-X MKCOL \"$NEXTCLOUD_URL/remote.php/dav/files/$NEXTCLOUD_USER/Soren/audio-books/\" \\
|
||||
-k
|
||||
```
|
||||
|
||||
**Notes**:
|
||||
- Path: `Soren/[subdir]/file.ext` (default home).
|
||||
- `-k`: Ignore self-signed certs.
|
||||
- Vars from `~/.openclaw/.env`: NEXTCLOUD_{URL,USER,TOKEN}.
|
||||
- Hardcode fallback: `michael:5Zxr9-Gan2A-gtdDz-pgqHM-eRtGx` @ `https://nc.coast2cloud.net`
|
||||
|
||||
## Download
|
||||
```bash
|
||||
curl -u $NEXTCLOUD_USER:$NEXTCLOUD_TOKEN \\
|
||||
\"$NEXTCLOUD_URL/remote.php/dav/files/$NEXTCLOUD_USER/Soren/path/file.wav\" \\
|
||||
-O -k
|
||||
```
|
||||
|
||||
Saved Apr 22, 2026.
|
||||
Reference in New Issue
Block a user