Documentation

formData

JSON Object

Empty Object

A JSON object containing additional data to send to the server-side upload script. ┬áData sent via this option will be sent via the headers and can be accessed via the $_POST array (if using the ‘post’ method). ┬áSo if you send something like {‘someKey’ : ‘someValue’}, then you can access it as $_POST['someKey'].

Demo