Skip to content

Commit b1fa63f

Browse files
authored
fix(File): file.has -> file.get (#433)
1 parent 586679d commit b1fa63f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uploader/qiniu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function upload(uploadInfo, data, file) {
1010
const uptoken = uploadInfo.token;
1111
return new Promise((resolve, reject) => {
1212
const extra = new qiniu.io.PutExtra();
13-
if (file.has('mime_type')) {
13+
if (file.get('mime_type')) {
1414
extra.mimeType = file.get('mime_type');
1515
}
1616
const body = new Buffer(data, 'base64');

0 commit comments

Comments
 (0)