Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个bug太坑了 元数据定义无法生效的问题 请修改 #389

Closed
MrFriedRice opened this issue Feb 4, 2022 · 1 comment · Fixed by #390
Closed

这个bug太坑了 元数据定义无法生效的问题 请修改 #389

MrFriedRice opened this issue Feb 4, 2022 · 1 comment · Fixed by #390

Comments

@MrFriedRice
Copy link

目前的版本自定义传参无效
经过我不断调试找到了问题 气死
路径 \node_modules_qiniu@7.4.0@qiniu\qiniu\storage\form.js

postForm.field(k, putExtra.params[k].toString());
改为
postForm.field(x-qn-meta-${k.split('x:')[1]}, putExtra.params[k].toString());

13}E@T@%LSK27T )~550JPR

lihsai0 added a commit that referenced this issue Feb 9, 2022
lihsai0 added a commit that referenced this issue Feb 14, 2022
lihsai0 added a commit that referenced this issue Feb 16, 2022
- fix upload lost metadata
- fix resume_up.PutExtra constructor in index.d.ts
@lihsai0
Copy link
Collaborator

lihsai0 commented Feb 17, 2022

putExtra.params自定义变量而非元数据。

nodejs-sdk 之前不支持上传时添加元数据,新的 PR 已进行支持。

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 a pull request may close this issue.

2 participants