Learn how to use the filestorage slash command for file storage operations
action
- Operation to perform (upload, create, append, get, list, delete, update)filename
- Name of the file (required for most operations)content
- File content for upload/create/append operationsmetadata
- Additional information about the filefile_links_expire_in_days
- Link expiry: 1-7 days or “never” for public filesfile_links_expire_in_minutes
- Minute-level precision for link expiryget_file_contents
- Set to true to retrieve file content along with metadataformat
- Set to “light” for minimal file listingreplaceExisting
- Whether to replace existing files with same filename (defaults to “true”; if “false”, adds timestamp to filename)action
(required) - Set to “upload”file
(required) - File or buffer to uploadmetadata
(optional) - File metadatafile_links_expire_in_days
(optional) - Link expiry (1-7 days or “never”)file_links_expire_in_minutes
(optional) - Minute-level precisionreplaceExisting
(optional) - Whether to replace existing files with same filename (defaults to “true”)action
(required) - Set to “create”filename
(required) - Name of the filecontent
(required) - File contentmetadata
(optional) - File metadatafile_links_expire_in_days
(optional) - Link expiry (1-7 days or “never”)file_links_expire_in_minutes
(optional) - Minute-level precisionreplaceExisting
(optional) - Whether to replace existing files with same filename (defaults to “true”)action
(required) - Set to “append”filename
(required) - Name of the filecontent
(required) - Content to appendmetadata
(optional) - Updated metadatafile_links_expire_in_days
(optional) - Link expiry (1-7 days or “never”)file_links_expire_in_minutes
(optional) - Minute-level precisionaction
(required) - Set to “get”filename
(required) - Name of the fileget_file_contents
(optional) - Set to true to retrieve contentfile_links_expire_in_days
(optional) - Link expiry for returned signedUrlaction
(required) - Set to “list”format
(optional) - Set to “light” for minimal infofile_links_expire_in_days
(optional) - Link expiry for returned signedUrlsaction
(required) - Set to “delete”filename
(required) - Name of the fileaction
(required) - Set to “update”filename
(required) - Name of the filefile_links_expire_in_days
(required) - New link expiry (1-7 days or “never”)file_links_expire_in_minutes
(optional) - Minute-level precisionmetadata
(optional) - Updated metadataget_file_contents: true
to retrieve content directlyfile_links_expire_in_days: "never"
to make files publicreplaceExisting: "false"
to add a timestamp to the filename insteadfile_links_expire_in_days
setting. Access history is maintained in the accessList
with entries including action performed, provider ID, and timestamp