Actions36
- List Files
- Search Files
- Download File
- Upload File
- Create Folder
- Rename
- Delete
- Copy / Move
- List Starred Files
- List Recent Files
- List Shared with Me
- List Shared with Others
- Get File Ancestors
- Create Share Link
- List Share Links
- Update Share Permissions
- List Labels
- Create Label
- Update Label
- Delete Label
- Add Label to File
- List Files by Label
- Star File
- Convert Office File
- List Team Folders
- Get Team Folder Members
- Create Webhook
- List Webhooks
- Get Webhook
- Update Webhook
- Delete Webhook
- Get File Thumbnail
- Upload from DSM
- Request Access
- Custom Drive Call
- List Drive APIs
Get File Thumbnail
AI-generatedSummary
Retrieve a thumbnail image of a specified file from Synology Drive, specifying the file path and desired thumbnail size.
Inputs
- File Path (required) — Path to the file for which to get the thumbnail.
- Thumbnail Size — Size of the thumbnail image to retrieve; options are Small (96x96), Medium (256x256, default), and Large (512x512).
Output shape
a JSON object containing the thumbnail data, as returned by the SYNO.SynologyDrive.Files API 'get_thumbnail' method
The output includes the result of the API call to get the thumbnail. Additional parameters may be merged from 'extraParamsJson' if provided. The returned data structure depends on Synology's API response format for the thumbnail request.
Examples
Example 1: Fetch a medium-sized thumbnail for a file located at '/documents/report.pdf'.
Set 'File Path' to '/documents/report.pdf' and 'Thumbnail Size' to 'medium'.
