get

In order to get a file from the file storage, use the file/get command.

Copied!
svc=file/get&params={"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:

Copied!
Invalid input{"error":3}
Download PDF file
Download Word document

See also