get
To get a file from the file storage, use the file/get method.
svc=file/get¶ms={"itemId":<long>,
"storageType":<uint>,
"path":<text>,
"format":<uint>}
Parameters
| Parameter | Description |
|---|---|
| itemId | Item ID. |
| storageType | Storage type: 1 - public (all users can see and download files), 2 - protected (only users with the View and download files access right to the item can see and download files). |
| path | Relative path from the root folder to the file. |
| format | Specify “format”:1 to get a DDD file in VDO format. The parameter is optional. |
Response
Returns the file.
If the input parameters are invalid, the item isn’t found, you have no access to the protected storage of the item, or there is no file at the specified path, an error code is returned:
Invalid input{"error":3}