download-attachment
Download a file attachment from a Dooray task using project, task, and file IDs, and optionally save it to a local path for large files.
Instructions
Download a file attachment from a Dooray task.
Required Parameters:
projectId: The project ID
taskId: The task ID (post ID)
fileId: The file ID (get from get-attachment-list)
Optional:
savePath: Local path to save the file. Can be a directory (filename auto-detected) or full file path. Recommended for large files.
Examples:
Save to file: { "projectId": "123", "taskId": "456", "fileId": "789", "savePath": "/tmp/downloads/" }
Base64 (small files): { "projectId": "123", "taskId": "456", "fileId": "789" }
Response Fields:
success: Whether download succeeded
fileId: The file ID
filename: Original filename
contentType: MIME type of the file
contentLength: File size in bytes
savedTo: (when savePath used) Local path where file was saved
base64Data: (when savePath omitted) Base64 encoded file content
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | File ID | |
| taskId | Yes | Task ID (post ID) | |
| savePath | No | Local path to save (directory or full path). Recommended for large files. | |
| projectId | Yes | Project ID |