Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Multiple file uploads in one request

$
0
0

@yellingag wrote:

Hello all,

I was able to upload my audio file using cordova file transfer plugin but I want to upload multiple file uploads within one request. Then I saw this guy doing chain requests for uploading/downloading. But I guess this is not exactly what I want. Chaining multiple cordova filetransfer. I just wants to upload multiple files at one go.

How could I achieve that in Ionic?

Below is my current code.

  console.log("URI: " + audioURI);
  var options = new FileUploadOptions();
  options.fileKey= "record";
  options.fileName=audioURI.substr(audioURI.lastIndexOf('/')+1);
  options.mimeType="audio/mpeg";
  options.chunkedMode = false;
  //options.filename = AUDIO_FILENAME;
  options.headers = {
    Connection: "close"
  };

  var ft = new FileTransfer();
  ft.upload(audioURI, encodeURI(uploadURI), win, fail, options);

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>