upload file to dropbox

How I can add the send(file) to my backend js module same as the xhr.send(file) quoted commented below.
import { fetch } from ‘wix-fetch’ ;
export function xdrop() {
const url = “https://content.dropboxapi.com/2/files/upload” ;
const headers = {
“Authorization” : "Bearer " + ‘aaaaaaaaa’ ,
“Content-Type” : “application/synagogue” ,
“Dropbox-API-Arg” : JSON.stringify({
path: ‘/’ + ‘Apps/synagogue’
})
}
const request = {
“method” : “add” ,
“headers” : headers,
“autorename” : true ,
“mute” : false ,
}

console.log( "request==>" , request) 

return fetch(url, request, )
.then(response => response.json());

}
//path: ‘/’ + ‘synagogue’ + ‘acc.csv’
//xhr.open(‘POST’, ‘https://content.dropboxapi.com/2/files/upload’);
//xhr.setRequestHeader(‘Authorization’, 'Bearer ’ + bbbbbbbbb);
//xhr.setRequestHeader(‘Content-Type’, ‘application/synagogue’);
//xhr.setRequestHeader(‘Dropbox-API-Arg’, JSON.stringify({
// path: ‘/’ + ‘accounting’ + ‘acc.csv’,
//mode: ‘add’,
//autorename: true,
//mute: false
/ /xhr.send(file);

//}))