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 102b27a commit 3396f0cCopy full SHA for 3396f0c
src/file.js
@@ -129,9 +129,12 @@ module.exports = function(AV) {
129
var dataBase64 = parseBase64(data.base64, mimeType);
130
this._source = Promise.resolve({ data: dataBase64, type: mimeType });
131
} else if (data && data.blob) {
132
- if (!data.blob.type) {
+ if (!data.blob.type && mimeType) {
133
data.blob.type = mimeType;
134
}
135
+ if (!data.blob.name) {
136
+ data.blob.name = name;
137
+ }
138
if (process.env.CLIENT_PLATFORM === 'ReactNative' || process.env.CLIENT_PLATFORM === 'Weapp') {
139
this._extName = extname(data.blob.uri);
140
0 commit comments