Data Types

UploadWidgetMethods

This object is passed to the onInit callback in the UploadWidgetConfig.

It contains methods that allow you to change the state of the widget after it has opened.

{
"close": Function,
"reset": Function,
"updateConfig": Function
}

Closes the Upload Widget, removing all of its elements from the DOM.

An empty array of files will be returned from the open method (and from the onComplete callback if using a UI framework like React).

Type: Function

Resets the Upload Widget to its initial state.

Type: Function

Callback taking a single parameter: an object of type UploadWidgetConfig.

Calling this function allows you to update the configuration of the Upload Widget at runtime.

Type: Function

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: