i used "https://www.dropbox.com/developers/saver" Api and based on document to upload multiple file i send list of base64 string to Dropbox, but i got an error fail to upload, when select only one file it uploaded successfully!
and here sample code
var options ={files:[]};
for (var i=0;i< attachments.length; i++) {
var item = attachments[i];
var file = {
url: 'data:application/pdf;base64,'+ item.fileByte
filename: item.name
};
options.files.push(file);
}
var button = window.Dropbox.createSaveButton(options);
document.getElementById("pdfcontainer").appendChild(button);