Attach a file as a multipart upload.
Section: Forms and Upload
Upload a file via multipart form
bash
bash
curl -F 'file=@./report.pdf' https://example.com/uploadExplanation
Prefix a filename with `@` to upload its content.
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.
Submit a multipart form field
Send a simple form field using multipart/form-data.
Send binary request data
Send binary-safe request data without transformations.