Credentials and Additional Data

During file upload or removal, you can control whether or not to send cookies and headers for cross-site requests, or additional data.

Attaching Credentials to Requests

You can control whether or not the request will use credentials by setting the withCredentials option. By default, withCredentials is set to true.

Example
View Source
Edit In Stackblitz  
Change Theme:

Attaching Additional Data to Requests

You can also send additional data in the form of key/value pairs.

Depending on when the data will be sent:

  • In the upload event handler, set the data property of the UploadEvent argument, or
  • In the remove event handler, set the RemoveEvent argument.
Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?