-
Notifications
You must be signed in to change notification settings - Fork 126
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
怎样才能支持base64图片文件的上传? #83
Comments
base64转成图片文件后再上传 |
已经转成图片文件,但是出于安全限制,input的type=等于file时,js无法操作更改input的val |
`var objUrl = getObjectURL($(e).get(0).files[0]) ;
|
简单的方法是,裁剪后下载再上传。复杂一点的是改前端代码,裁剪后转成blob对象或者file对象,上传的时候通过blob或者file对象取值而不是input控件,大概是这样。 |
可以参考这篇文章中的最后一步:https://www.cnblogs.com/anningwang/p/9278006.html |
我在你的方法里增加了一个setResource方法,现在可以了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
用户上传图片时需要增加裁剪功能,裁剪完成之后再通过aetherupload上传,请问如何操作
The text was updated successfully, but these errors were encountered: