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 771a121 commit c34de5cCopy full SHA for c34de5c
src/file.js
@@ -352,6 +352,9 @@ module.exports = function(AV) {
352
}
353
this._source = Promise.resolve({ data: data.blob, type: guessedType });
354
} else if (typeof File !== "undefined" && data instanceof global.File) {
355
+ if (data.size) {
356
+ this.attributes.metaData.size = data.size;
357
+ }
358
this._source = Promise.resolve({ data, type: guessedType });
359
} else if (typeof global.Buffer !== "undefined" && global.Buffer.isBuffer(data)) {
360
// use global.Buffer to prevent browserify pack Buffer module
0 commit comments