download-wiki-page-file
Download a file attached to a Dooray wiki page by wiki ID, page ID, and file ID, optionally saving it to a local path for large files.
Instructions
Download a file attached to a Dooray wiki page.
Required Parameters:
wikiId: The wiki ID
pageId: The wiki page ID
fileId: The file ID (get from wiki page detail API: $.result.files.id or $.result.images.id)
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: { "wikiId": "123", "pageId": "456", "fileId": "789", "savePath": "/tmp/downloads/" }
Base64 (small files): { "wikiId": "123", "pageId": "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 (from page detail API) | |
| pageId | Yes | Wiki page ID | |
| wikiId | Yes | Wiki ID | |
| savePath | No | Local path to save (directory or full path). Recommended for large files. |