Actions118
- Item Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Collection Actions
- Extension Actions
- Field Actions
- File Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Server Actions
- Setting Actions
- User Actions
- Utility Actions
- Webhook Actions
File → Get
AI-generatedOverview
This node retrieves a file object from the Directus system using a unique file ID. It is useful in scenarios where you need to access specific file metadata or content stored in Directus, such as fetching an image or document by its ID for further processing or display.
Use Case Examples
- Fetching a file's metadata by its unique ID to display file details in a dashboard.
- Retrieving a file to download or process it in an automation workflow.
Properties
| Name | Meaning |
|---|---|
| ID | Unique ID of the file object to retrieve |
Output
JSON
id- The unique identifier of the file.filename_download- The filename to be used when downloading the file.title- The title or name of the file.type- The MIME type of the file.size- The size of the file in bytes.url- The URL to access the file.
Dependencies
- Directus API access with appropriate authentication credentials
Troubleshooting
- Ensure the provided file ID is correct and exists in the Directus system to avoid 'file not found' errors.
- Verify that the API credentials have sufficient permissions to access file data.
- Check network connectivity to the Directus API endpoint if requests fail.
Links
- Directus Files API Documentation - Official documentation for managing files in Directus via API.