Skip to content

Conversation

@nighca
Copy link
Contributor

@nighca nighca commented Apr 28, 2020

目前上传接口支持值为空字符串("")的 key,不过目前这边的实现

if (key) {
postForm.field('key', key);
}

只在 key 值为真时才会向表单中添加对应的字段;结果是 key"" 时,表单中没有带上 key 字段,对应地上传接口会返回:

{ "error": "key doesn't match with scope" }

这里修改判断条件,以支持上传时指定 key 值为空字符串

@bachue bachue merged commit 12599bd into qiniu:master Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants