dist/ng-image-upload-template-in.js
function sizeFilter (item /*{File|FileLikeObject}*/, options) {
      var size = item.size,
          // Use passed size limit or default to 10MB
          sizeLimit = vm.sizeLimit || 10 * 1000 * 1000;
      if (size > sizeLimit) {
        var err = new Error('File too big (' + size + ')');
        vm.onUploadFinished(err);
        throw err;
      }
      return size < sizeLimit;
    }
function sizeFilter (item /*{File|FileLikeObject}*/, options) {
      var size = item.size,
          // Use passed size limit or default to 10MB
          sizeLimit = vm.sizeLimit || 10 * 1000 * 1000;
      if (size > sizeLimit) {
        var err = new Error('File too big (' + size + ')');
        vm.onUploadFinished(err);
        throw err;
      }
      return size < sizeLimit;
    }
function sizeFilter ( item /*{File|FileLikeObject}*/ , options ) { var size = item . size , // Use passed size limit or default to 10MB sizeLimit = vm . sizeLimit || 10 * 1000 * 1000 ; if ( size > sizeLimit ) { var err = new Error ( 'File too big (' + size + ')' ) ; vm . onUploadFinished ( err ) ; throw err ; } return size < sizeLimit ; }
Filters out images that are larger than the specified or default limit
Filters out images that are larger than the specified or default limit