cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 

Dropbox Saver API url as base64 works when upload 1 file when upload multiple i got error?

msm2020
Explorer | Level 3

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&colon;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 1

Re: Dropbox Saver API url as base64 works when upload 1 file when upload multiple i got error?

Dropboxer
Dropboxer

[ Cross-linking for reference: https://stackoverflow.com/questions/60534044/dropbox-saver-api-url-as-base64-works-when-upload-1-fil... ]

Using the Dropbox Saver with data URIs like this is unfortunately not officially supported, but we'll consider it a feature request.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?