Skip to content

Commit

Permalink
fix the mime error after updating the library
Browse files Browse the repository at this point in the history
  • Loading branch information
jemygraw committed May 18, 2018
1 parent 24c9ce1 commit 8442eaf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,8 @@
## CHANGE LOG

## v7.7.7
- 修复form上传在升级mime库后的错误

## v7.1.6
- 修复rs和rsf的https默认域名
- 升级修复mime库的安全风险
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "qiniu",
"version": "7.1.6",
"version": "7.1.7",
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API",
"main": "index.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion qiniu/storage/form.js
Expand Up @@ -173,7 +173,7 @@ FormUploader.prototype.putFile = function(uploadToken, key, localFile, putExtra,
var fsStream = fs.createReadStream(localFile);

if (!putExtra.mimeType) {
putExtra.mimeType = mime.lookup(localFile);
putExtra.mimeType = mime.getType(localFile);
}

if (!putExtra.fname) {
Expand Down

0 comments on commit 8442eaf

Please sign in to comment.