1
2
3
4
ProcFormFile(
    int FileID,
    bool ReturnDownloadUrl
)

Returns the information for a File.

Request

Request Data:

  • (int) FileID (required) – identify the file to get.
  • (bool) ReturnDownloadUrl (required) – if true the response will not contain the “File” property and instead returns a “DownloadUrl” with a temporary download link for the file.
    Notes: The URL is valid for 5 minutes (Available since RPM24)
1
2
3
{
    "FileID": <int>
}

Response

1
2
3
4
5
6
7
8
9
10
11
12
{
  "Result": {
    "FileID": <int>,
    "FormID": <int>,
    "File": <string>, // Base64 data without the data-uri prefix (data:[<media type>][;base64])
    "DownloadUrl": <string>, // Valid for 5 minutes. Since RPM24
    "Name": <string>,
    "Description": <string>,
    "IsStaffOnly": <bool>,
    "FolderID": <int>
  }
}

Errors

  • “File not found”
  • “Form not found”