Skip to content
Massimo Melina edited this page Jul 20, 2023 · 3 revisions

It is possible to upload a file without using HFS' web interface.

At command line you can use curl -T FILE URL/, where FILE is the path of the file you want to upload, and URL is the destination folder in HFS. It also works in this other way curl -F upload=@FILE URL/.

From any programming language you can make an HTTP request. Using method PUT, the URL must include folder and filename, while the body will contain exactly the content of the file. If you want to use method POST, it will be treated as a form multipart. The URL must include the folder only, with final slash, the name of the field in the form is ignored, while the file name is read from Content-Disposition of the multipart.

Clone this wiki locally