Upload attachment
qase_attachment_uploadUpload files to Qase and receive hashes. Pass these hashes in an attachments field to attach the files; uploading alone does not attach.
Instructions
Upload files and get back the hashes other tools reference them by. Pass file_base64 plus filename for one file, or files for several in one request; file_path only works when the server runs on the same machine as the file — never on the hosted connector. The hash must then be passed in an attachments field; uploading alone attaches nothing. This is the only tool that sends multipart/form-data, which is why qase_api cannot send files. Cost: one API call per request, dominated by size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Project code, e.g. DEMO | |
| file | No | Deprecated: use file_base64 or file_path. Accepts an absolute path or base64 content. | |
| files | No | Several files in one request, each entry with its own filename plus file_base64 or file_path. One round trip, hashes returned in the same order. Limits and sizing are in qase_tool_help. | |
| filename | No | Original filename with extension. Required for the single-file form. | |
| file_path | No | Single-file form. Absolute path on the machine running THIS server; a remote server cannot see it — send file_base64 instead. | |
| file_base64 | No | Single-file form. File content, base64 encoded. Use this unless the server runs on the same machine as the file. |