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

File upload with data

$
0
0

@atid wrote:

I am uploading images to my server using cordova-plugin-file-transfer

var options = {
 fileKey: "avatar";,
 filename: filename,
 chunkedMode: false,
 mimeType: "image/png";
};

$cordovaFileTransfer.upload(url, targetPath, options)
 .then(function(result) {

 }, function(err) {

 });
}

And this is working fine, but I need to send some data with the file (description, user ...) in order to properly save the uploaded file and add it to my database.

How can I send the file and the data together? thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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