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

How to use $cordovaFileTransfer upload multiple images?

$
0
0

@jhl wrote:

filePath = ['xxxx','xxx'];
 $cordovaFileTransfer.upload(server, filePath, options)
.then(function(result) {

}, function(err) {
  // Error
  console.log(err);
}, function (progress) {
  // console.log(progress);
  });

but i get error message

[Error] Wrong type for parameter "filePath" of FileTransfer.upload:
Expected String, but got Array.checkArgs

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>