Data Types

UploadWidgetOnPreUploadResult

This object should be returned by the onPreUpload callback in the UploadWidgetConfig.

{
"errorMessage": String,
}
{
"errorMessage": "Uh oh! This file failed our custom validation."
}

Validation error to display to the user for this file.

The file will not be uploaded if a value is returned for this field.

Example: "Uh oh! This file failed our custom validation."

Type: String

An alternative file to upload instead of the original file.

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: