OneDrive Saver Api (Multiple Files Upload) <pre><code> var MyFiles = []; if (val == "Address") { MyFiles.push({ 'file': 'http://----/Content/File/Addresses.xlsx', 'fileName': 'Addresses.xlsx' }); } if (val == "DebitDetail") { MyFiles.push({ 'file': 'http://----/Content/File/DebitDetails.xlsx', 'fileName': 'DebitDetails.xlsx' }); } if (val == "AddressAssociated") { MyFiles.push({ 'file': 'http://----/Content/File/AddressAssociatedCompanies.xlsx', 'fileName': 'AddressAssociatedCompanies.xlsx' }); } if (val == "DebitDetailAssociated") { MyFiles.push({ 'file': 'http://----/Content/File/DebitDetailsAssociatedCompanies.xlsx', 'fileName': 'DebitDetailsAssociatedCompanies.xlsx' }); } var saverOptions = { file: myFiles, success: function () { // upload is complete }, progress: function (p) { // upload is progressing }, cancel: function () { // upload was cancelled }, error: function (e) { // an error occured } }; OneDrive.save(saverOptions); </code></pre> <p>I have used the above code for DropBox and it works well because it takes an array of objects but i cant find solution for OneDrive.com! Below documentation only shows how to upload a single file using URL. but i want to upload multiple files.</p> <p>The Format From The OneDrive Site</p> <pre><code>var saverOptions = { file: "inputFile", fileName: 'file.txt', success: function(){ // upload is complete }, progress: function(p) { // upload is progressing }, cancel: function(){ // upload was cancelled }, error: function(e) { // an error occured } } </code></pre> <p><a href="https://dev.onedrive.com/sdk/javascript-picker-saver.htm" rel="nofollow">https://dev.onedrive.com/sdk/javascript-picker-saver.htm</a></p>