From e5475b8c36efef0b92c613002d165110f1c520b1 Mon Sep 17 00:00:00 2001 From: nighca Date: Tue, 28 Apr 2020 10:55:16 +0800 Subject: [PATCH] debug upload with empty key --- qiniu/storage/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiniu/storage/form.js b/qiniu/storage/form.js index 91d0f3c9..241e206e 100644 --- a/qiniu/storage/form.js +++ b/qiniu/storage/form.js @@ -106,7 +106,7 @@ FormUploader.prototype.putWithoutKey = function (uploadToken, body, putExtra, function createMultipartForm (uploadToken, key, fsStream, putExtra, callbackFunc) { var postForm = formstream(); postForm.field('token', uploadToken); - if (key) { + if (key != null) { postForm.field('key', key); } postForm.stream('file', fsStream, putExtra.fname, putExtra.mimeType);