qase_attachment_upload
Upload an attachment file to Qase and retrieve its hash for use in other Qase operations. Accepts base64 content or a local file path.
Instructions
Upload a file attachment and get back its hash, which the attachments field of qase_case_upsert, qase_result_record, qase_ci_report, qase_triage_defect, and qase_shared_step_upsert accepts. This is the only way to obtain such a hash — the upload endpoint needs multipart/form-data, which qase_api cannot send. Pass the file as base64 (file_base64), which is the only option when the server runs remotely, such as the hosted connector; file_path works only when the server runs on the same machine as the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Project code (2-10 uppercase letters, numbers, or underscores) | |
| file | No | Deprecated: prefer file_base64 or file_path, which say which one you mean. Accepts either an absolute path to an existing file or base64 content. | |
| filename | Yes | Original filename with extension | |
| file_path | No | Absolute path to a file on the machine running THIS server. Only usable for a local stdio server; a remote server cannot see your filesystem — send file_base64 instead. | |
| file_base64 | No | File content, base64 encoded. Use this whenever the server is not on the same machine as the file — including the hosted connector, where it is the only option. |