Send a local file as the request body with PUT.
Section: Forms and Upload
Upload a file with PUT
bash
bash
curl -T ./artifact.zip https://example.com/artifact.zipExplanation
`-T` / `--upload-file` is useful for HTTP, FTP, and other protocols.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Forms and Upload
Upload a file with explicit content type
Specify the filename part and content type.
Send binary request data
Send binary-safe request data without transformations.
Submit a multipart form field
Send a simple form field using multipart/form-data.