upload_file
Upload a binary file to Redmine to obtain an upload token, which can be attached to issues or wiki pages. Always set content type to application/octet-stream.
Instructions
Uploads a binary file to Redmine and returns an upload token. IMPORTANT: Redmine requires the request to use Content-Type: application/octet-stream for all file uploads — always set content_type to 'application/octet-stream', regardless of the actual file type. Using any other MIME type (e.g. 'image/png', 'application/pdf') will cause Redmine to reject the upload with HTTP 406. The returned token must be passed in the 'uploads' field when creating or updating issues, wiki pages, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name for the uploaded file as it will appear in Redmine | |
| content_type | Yes | MUST be 'application/octet-stream'. Redmine rejects uploads with any other Content-Type (HTTP 406). Do not use the actual MIME type of the file here. | application/octet-stream |
| file_path | Yes | Absolute path to the local file to upload. |