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
.
Example: curl -F filenames=@file1.txt -F filenames=@file2.txt "share link"
Or 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.
Example: curl --data-binary @file.txt -H "Content-Type: application/octet-stream" -H "X-SFTPGO-MTIME: 1638882991234" "share link/file.txt"