Documentation

disk.file.get

disk.file.get

Returns a file by identifier.

Response example:

"result": {
    "ID": "10", //identifier
    "NAME": "2511.jpg", //file name
    "CODE": null, //symbol code
    "STORAGE_ID": "4", //storage ID
    "TYPE": "file",
    "PARENT_ID": "8", //parent folder ID
    "DELETED_TYPE": "0", //deletion token
    "CREATE_TIME": "2015-04-24T10:41:51+03:00", //time of creation
    "UPDATE_TIME": "2015-04-24T15:52:43+03:00", //time of update
    "DELETE_TIME": null, //time of moving an element to the recycle bin
    "CREATED_BY": "1", //ID of a user who created the file
    "UPDATED_BY": "1", //ID of a user who updated the file
    "DELETED_BY": "0", //ID of a user who moved the file to recycle bin
    "DOWNLOAD_URL": "https://test.bitrix24.com/disk/downloadFile/10/?&ncc=1&filename=2511.jpg&auth=******", //link to content download
    "DETAIL_URL": "https://test.bitrix24.com/workgroups/group/3/disk/file/2511.jpg" //link to the page containing detailed information about the file
}



Parameters

Parameter Description
id File identifier.

Example

BX24.callMethod(
		"disk.file.get",
		{
			id: 10
		},
		function (result)
		{
			if (result.error())
				console.error(result.error());
			else
				console.dir(result.data());
		}
);




© «Bitrix24», 2001-2024
Up