Data Types

FileSummary

Summary information about a file (a subset of the FileDetails type).

Structure

{
"filePath": String,
"fileUrl": String,
"lastModified": Integer,
"size": Integer,
"type": String
}

Example

{
"filePath": "/uploads/image.jpg",
"fileUrl": "https://upcdn.io/A623uY2/raw/uploads/image.jpg",
"lastModified": 1615680311115,
"size": 43182,
"type": "File"
}

Properties

filePath

The file's path.

We recommend you save this value to your database (instead of the file's URL).

This value always begins with a /.

Example: "/uploads/image.jpg"

Type: String

Min Length: 1

Max Length: 512

Required: Yes

fileUrl

The file's raw URL (i.e. with no file transformations applied).

Example: "https://upcdn.io/A623uY2/raw/uploads/image.jpg"

Type: String

Min Length: 1

Max Length: 255

Required: Yes

lastModified

Time the file was uploaded or last overwritten. Epoch milliseconds (since midnight 1 January 1970, UTC).

Example: 1615680311115

Type: Integer

Minimum: 0

Required: Yes

size

The size of the file in bytes.

Example: 43182

Type: Integer

Minimum: 0

Required: Yes

type

Type: String

Value: "File"

Required: Yes

Used by

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: