-
Notifications
You must be signed in to change notification settings - Fork 566
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
关于前端上传callback #211
Comments
还有callback url在哪里填写呢? |
可参考 https://github1s.com/tencentyun/cos-js-sdk-v5/blob/master/demo/demo.js#L919-L920 |
试出来了,你们这个ts有没有类型提示,而且本身callback是有bug的。 回调是不成功的,只有去掉imageInfo才行。。 |
|
你仔细想想这个逻辑有没有问题,用户一个pdf文件,愣是改成png后缀上传,前端根本没法判断是不是真的png,这就有问题。看看隔壁家的,不管你是不是图片,填了也不会导致整个上传流程走不下去。 |
回调失败但是上传成功的,不会影响整个流程 |
请问在使用cos.uploadFile的时候,callback应该怎么传递?
我在demo.js上看到是可以直接传递Callback参数的,但实际代码ts却没有相关参数提示,拿不准是demo.js里的代码比较老了还是ts没加上去。
The text was updated successfully, but these errors were encountered: