We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
msm2020
6 years agoExplorer | Level 3
Dropbox Saver API url as base64 works when upload 1 file when upload multiple i got error?
Hello,
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 deselct all files and leave 1 file only it uploaded correctly ?
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);
1 Reply
- Greg-DB6 years ago
Dropbox Community Moderator
[ Cross-linking for reference: https://stackoverflow.com/questions/60534044/dropbox-saver-api-url-as-base64-works-when-upload-1-file-when-upload-multiple-i ]
Using the Dropbox Saver with data URIs like this is unfortunately not officially supported, but we'll consider it a feature request.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 14 hours ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!