upload-file tagged requests and articles

Categorized request examples and articles tagged with [upload-file] keyword
How do I post a file using Curl?
To post (or upload) a file with Curl, use the -d or -F command-line options and start the data with the @ symbol followed by the file name. To upload multiple files, repeat the -F option several times. Curl will automatically provide the Content-Type header based on the file extension, but you can indicate a custom Content-Type header using the -H command-line option. The file will be sent using the HTTP POST method. You can specify a different HTTP method using the -X command line parameter. For security reasons, ReqBin Online Curl Client does not support sending files from its disk. Click Run to execute the Curl Post File example online and see the results.