code: 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;
      }
docs: Filters out images that are larger than the specified or default limit