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.
2 parents c3406ef + 2555615 commit 4f52349Copy full SHA for 4f52349
src/file.js
@@ -379,6 +379,9 @@ module.exports = function(AV) {
379
this.attributes.base64 = dataURLToBase64(data.base64);
380
this._source = AV.Promise.as(dataBase64, guessedType);
381
} else if (data && data.blob) {
382
+ if (!data.blob.type) {
383
+ data.blob.type = guessedType;
384
+ }
385
this._source = AV.Promise.as(data.blob, guessedType);
386
} else if (typeof(File) !== "undefined" && data instanceof global.File) {
387
this._source = AV.Promise.as(data, guessedType);
0 commit comments