Data Types

FormDataUploadResponseFile

File uploaded by a successful FormDataUpload request.

{
"accountId": String,
"etag": String,
"filePath": String,
"fileUrl": String,
}
{
"accountId": "YOUR_ACCOUNT_ID",
"etag": "33a64df551425fcc55e4d42a148795d9f25f89d4",
"filePath": "/uploads/file.txt",
"fileUrl": "https://upcdn.io/A623uY2/raw/uploads/file.txt",
"formDataFieldName": "file"
}

Your account ID.

This is visible on the settings page:

https://www.bytescale.com/dashboard/settings

Example: "A623uY2"

Type: String

Length: 7

The file's ETag, short for "entity tag", reflects the file's version and changes whenever the file is modified.

Example: "33a64df551425fcc55e4d42a148795d9f25f89d4"

Type: String

Min Length: 1

Max Length: 255

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/file.txt"

Type: String

Min Length: 1

Max Length: 512

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

Example: "https://upcdn.io/A623uY2/raw/uploads/file.txt"

Type: String

Min Length: 1

Max Length: 255

The field name that corresponds to this file in the multipart/form-data request body.

Example: "file"

Type: String

Min Length: 1

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: