https://appwrite.io/v1/storage/files/{fileId}/downloadGet a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
File unique ID.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}curl --request GET \
--url 'https://appwrite.io/v1/storage/files/{fileId}/download' \
--header 'accept: application/json' \
--header 'content-type: application/json'{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}https://appwrite.io/v1/storage/files/{fileId}/downloadGet a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
File unique ID.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}curl --request GET \
--url 'https://appwrite.io/v1/storage/files/{fileId}/download' \
--header 'accept: application/json' \
--header 'content-type: application/json'{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}