Skip to content

Commit 12599bd

Browse files
authored
Merge pull request #358 from nighca/master
Debug form upload with empty key
2 parents c14119f + e5475b8 commit 12599bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiniu/storage/form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ FormUploader.prototype.putWithoutKey = function (uploadToken, body, putExtra,
106106
function createMultipartForm (uploadToken, key, fsStream, putExtra, callbackFunc) {
107107
var postForm = formstream();
108108
postForm.field('token', uploadToken);
109-
if (key) {
109+
if (key != null) {
110110
postForm.field('key', key);
111111
}
112112
postForm.stream('file', fsStream, putExtra.fname, putExtra.mimeType);

0 commit comments

Comments
 (0)