{{define "api-file-id-info-get"}}
GET/file/{id}/info

Description

Returns information about one or more files. You can also put a comma separated list of file IDs in the URL and it will return an array of file info, instead of a single object.

Parameters

Param Required Location Description
id true URL ID(s) of the file

Returns

HTTP 200: OK
{
	"success": true,
	"id": "123abc",
	"file_name": "screenshot.png",
	"date_upload": 1485894987, // Timestamp
	"date_last_view": 1485894987, // Timestamp
	"file_size": 5694837, // Bytes
	"views" 1234, // Amount of unique file views
	"mime_type" "image/png",
	"description": "File description",
	"mime_image": "http://pixeldra.in/res/img/mime/image-png.png", // Image associated with the mime type
	"thumbnail": "http://pixeldra.in/api/thumbnail/123abc" // Link to a thumbnail of this file
}
HTTP 404: Not Found
{
	"success": false,
	"value": "file_not_found"
}
{{end}}