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

多文件上传多次获取uptoken #45

Open
luzhenxing opened this issue Jul 27, 2018 · 3 comments
Open

多文件上传多次获取uptoken #45

luzhenxing opened this issue Jul 27, 2018 · 3 comments

Comments

@luzhenxing
Copy link

你好,我希望多文件上传,每次都获取不同token,是不是在qiniu.upload.options里面配置tokenUrl,就可以每次都取不同的token

@gpake
Copy link
Owner

gpake commented Jul 28, 2018

upload方法中每次传入 option,并设置options.uptoken,才会每次更新,不然会缓存。
tokenFunc和tokenUrl都会缓存结果,避免多次调用。
一般情况下,这个 token 设置为在一定时间段内有效,不必要每次获取。也不会过分影响安全性。

@BruceZM
Copy link

BruceZM commented Jan 9, 2019

能说的 详细点吗

@gpake
Copy link
Owner

gpake commented Jan 9, 2019

@BruceZM 你的问题是?

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

No branches or pull requests

3 participants