-
Notifications
You must be signed in to change notification settings - Fork 85
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
使用ajax上传时,IOS上图片被截断 #4
Comments
请问你遇到的情况是指,图片上传完后,图片只有一半显示,还有一半不显示是这样吗? |
是的,当前使用了一种方案,将取到的编码,放到一个 textarea 中,再用 jquery form 提交 |
因为,测试了一下,在 android 中,input 目前还没有测试到上限值,但在 IOS 上,发现一个 512K 的上限长度限制,所以,512K 之后的,都被丢掉了,没办法改到了 textarea 中。 |
这个情况我没有遇到过唉。我是拿到 你为什么要通过 |
formData 要在 ajax 提交的时候组装,我因为表单提交的字段很多,不想再一一组装,直接就想将数据放入一个表单控件中,再以 jquery form 来提交。 |
@lfire formData 可以直接 new form 得到的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
严格来说,这不是一个BUG,只是寻求作者帮助。
我在使用库之后,将取到的 base64 码,加载到一个隐藏的 input 中,再通过 ajax 上传到服务器。
遇到的问题:
同一张图片,在android 上,上传成功,也成功压缩。但,在 Iphone 上操作时,就出现了图片只能上传一半的情况,另一半为空白,(期间相关参数没有任何改变)。
想问,作者有没有遇到过类似的问题,有没有解决方案。非常感谢!
The text was updated successfully, but these errors were encountered: