get
In order 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 access rights 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. |
Response
Returns the file.
If there is no file according to the specified path, an error code is returned:
Invalid input{"error":3}