cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you interested in hearing how one of our Community members uses Dropbox for sailing trips? Read all about it here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

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

Greg-DB
Dropbox Staff

[ 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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?