dooray_post_file_download
Downloads a Dooray post file to a local temporary directory using the file ID, supporting inline images and attachments while keeping authorization restricted to trusted Dooray origins.
Instructions
Download a Dooray post file by fileId through authenticated redirects to a local temporary directory. Authorization is forwarded only to the configured API origin and the HTTPS file-api.dooray.com download service; arbitrary redirect origins receive no Dooray token. Use this for every ID from the matching dooray_posts.fileIdList, including inline body images, with the same verified projectId and postId; it also supports regular attachment file IDs. dooray_post_files is not a prerequisite, and an empty result or AUTH_FORBIDDEN_ERROR from that separate endpoint does not imply that this direct download will fail. On success, the result contains filePath, fileName, mimeType, size, and temporary; inspect filePath with an appropriate local image viewer or document parser. A fetch failure or timeout is transient and must not be reported as a permission denial; retry or report the transport problem separately. Only report a body file as forbidden or missing when this direct request returns a terminal Dooray response such as 403 or 404 with the verified projectId, postId, and fileId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | file id from the matching post's fileIdList or regular attachment list | |
| postId | Yes | matching post id; this is the final numeric path value in both supported task URL forms | |
| fileName | No | optional file name used when the response does not provide one | |
| operation | Yes | The operation to perform | |
| projectId | Yes | verified project id of the matching post; for /task/{projectId}/{postId} URLs this is the first numeric path value |