Data Types

UploadWidgetFailedFile

Represents a file that failed to upload, either due to client-side validation, server-side validation, or other network failures.

{
"error": Object,
"file": Object
}

Error object for the failed upload.

For client-side validation errors, this will be an instance of UploadWidgetValidationError from the @bytescale/upload-widget module.

For Bytescale API errors, which includes errors resulting from server-side validation rules (which you can configure in the Bytescale Dashboard under the Rules page), this will be an instance of BytescaleApiError from the @bytescale/sdk module.

For general network errors, this will be a generic JavaScript error object.

File object from the DOM (i.e. from the input's onchange event).

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: