var file = new File([data], filename, {
type: "type/plain",
});
var ACCESS_TOKEN = access token;
xhr.open('POST', 'https://content.dropboxapi.com/2/files/upload', true);
xhr.setRequestHeader('Authorization', 'Bearer ' + ACCESS_TOKEN);
xhr.setRequestHeader('Content-Type', 'application/octet-stream');
xhr.setRequestHeader('Dropbox-API-Arg', JSON.stringify({
path: filename
}));
xhr.send(file);
this doesn't work anymore. Was working last week. Any ideas on what the issue is?