-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
我希望通过upload上传组件实现本地加密 #1831
Comments
在上传前改上传参数确实是比较常用的情况。 |
obj.resetFile 能否解决? |
我使用了resetFile,在控制台打印obj.pushFile()的时候,文件是resetFile之后的内容,但是在下一行代码中使用obj.preview()预览时,发现文件依然是resetFile之前的内容,上传的文件也依然是resetFile之前的内容。请问这是否意味着resetFile存在某些bug? |
没有重现,就没有办法确认 |
我使用settimeout方法进一步测试了upload里面的choose、before、progress、done回调函数,发现是因为开启upload的自动上传后,会立即上传文件,而此时choose、before回调函数中的resetFile尚未执行完毕,obj内容自然也就尚未更改。希望在以后的版本更新中能修复这个问题,谢谢。 |
议题条件
议题类型
功能请求
使用版本
v2.9.8
问题描述
我调用了upload组件,并在before函数中通过obj参数获取了文件,随后我使用对称加密方式加密了文件,但没有找到方法给obj重新赋值加密后的文件,以便上传加密后的文件。
业务代码
截图补充
浏览器
109
演示地址
No response
友好承诺
The text was updated successfully, but these errors were encountered: