We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37bc145 commit b22db2cCopy full SHA for b22db2c
src/file.js
@@ -391,6 +391,9 @@ module.exports = function(AV) {
391
}
392
this._source = AV.Promise.as(data.blob, guessedType);
393
} else if (typeof File !== "undefined" && data instanceof global.File) {
394
+ if (data.size) {
395
+ this.attributes.metaData.size = data.size;
396
+ }
397
this._source = AV.Promise.as(data, guessedType);
398
} else if (typeof global.Buffer !== "undefined" && global.Buffer.isBuffer(data)) {
399
// use global.Buffer to prevent browserify pack Buffer module
0 commit comments