get_file_info
Retrieve metadata for an uploaded file, including name, size, type, and upload information. Use to verify file details before downloading or sharing.
Instructions
Get metadata about an uploaded file.
Returns file name, size, type, and upload information. Use to check file details before downloading or sharing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | 26-character file identifier (e.g., 'o5w8h47pdfbzjc4d8w7dhnhren') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique file identifier | |
| name | Yes | File name | |
| size | Yes | File size in bytes | |
| width | No | Image width in pixels | |
| height | No | Image height in pixels | |
| post_id | No | Associated post ID | |
| user_id | Yes | Uploader user identifier (CreatorId in Go) | |
| create_at | Yes | Upload timestamp in milliseconds | |
| delete_at | Yes | Deletion timestamp | |
| extension | Yes | File extension without dot | |
| mime_type | Yes | MIME type | |
| update_at | Yes | Last update timestamp | |
| channel_id | Yes | Channel where file was uploaded | |
| has_preview_image | No | Has generated preview |