I am trying out Dropbox API V2 using HTMl,JavaScript by making API calls with XMLHTTPRequest. To upload a file onto Dropbox the API requires a 'data-binary' property to be set with the path of the file you want to upload. Below is the reference link of API and its parameters:
https://www.dropbox.com/developers/documentation/http/documentation#files-upload
I am able to set all the other properties and API is able to create a blank file at the specified path for 'Dropbox-API-Arg', however unable to pass the file from my machine to the API call.
How can I set data-binary with the path of the file to upload, specifically in XMLHTTPRequest?
Thanks in advance.