You can download the shared contents, as single zip file, using this link.
If the share consists of a single file you can download it uncompressed using this link
You can upload one or more files to the shared directory by sending a multipart/form-data request to this link. The form field name for the file(s) is filenames
.
For example:
curl -F filenames=@file1.txt -F filenames=@file2.txt "share link"
You can upload files one by one by adding the path encoded file name to the share link and sending the file as POST body. The optional X-SFTPGO-MTIME
header allows to set the file modification time as milliseconds since epoch.
For example:
curl --data-binary @file.txt -H "Content-Type: application/octet-stream" -H "X-SFTPGO-MTIME: 1638882991234" "share link/file.txt"
This share is no longer accessible because it has expired