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

Get file size

$
0
0

@gsoulie wrote:

Hi every body,

Today i’m trying to get the size of a file which is located in my app folder. I tried to use

    window.resolveLocalFileSystemURL(myFileCompleteURL, function(fileEntry) {
        fileEntry.file(function(fileObj) {
          this.consoleLog += "fileObj.size : " + fileObj.size + "\r\n";
        },
        function(err){
          this.consoleLog += "err : " + err + "\r\n";
        });
    })

But it doesn’t work…No error, no result…I didn’t find anything else to get file size with ionic / cordova…Anyone got an idea ?

thanks :wink:

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>