Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229600

Upload audio file from this.media object to http server

$
0
0

I use ng2-file-upload.

I take the audio Blob and add a date and name:

uploadBlob.lastModifiedDate = new Date();
uploadBlob.name = uploadBlob.lastModifiedDate + ".wav";

Then I add it as a FileItem to the uploader;

 let file = new File();
 let fileItem = new FileItem(this.uploader, uploadBlob, {});
 this.mix_uploader.queue.push(fileItem);
 fileItem.upload();

Viewing all articles
Browse latest Browse all 229600

Trending Articles



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