Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.resolveLocalFileSystemURL(Uri,
- function(fileEntry) {
- fileEntry.file(function(fileObj) {
- console.log("Size = " + fileObj.size);
- var size = fileObj.size;
- var megaSize = size / MEGABYTE;
- var roundedSize = Math.round( megaSize * 10 ) / 10;
- console.log("roundedSize", roundedSize);
- if(roundedSize < UPLOAD_LIMIT) {
- _fileUploadToServer(Uri, successCB, errorCB);
- }
- else {
- showToast.snackbarCustom($filter('translate')('FILE_SIZE_NOT_ALLOWED'),kbUp);
- }
- },
- function (error) {});
- }, function (error) {}
Add Comment
Please, Sign In to add comment