在iOS 8.0.0 GM Safari上通过HTTP上传文件失败 [英] Uploading files over HTTP fails on iOS 8.0.0 GM Safari
问题描述
更新:
确认:已在 iOS 8.0.2 更新中修复此问题。
UPDATE:
Confirmed: This has been fixed on the iOS 8.0.2 update.
使用PUT / POST通过HTTP上传文件似乎在iOS 8 GM版本的移动Safari上停留在发送请求标题上。
Using PUT/POST to upload file(s) over HTTP seems to get stuck on Sending Request Headers on mobile Safari on iOS 8 GM build.
我在这里有示例:
I have an example here:
- 在桌面上打开HTTP监视器并通过它将你的iOS 8设备路由到
- 登录
- 添加文件
- 点击上传
- 它获取坚持初始化(发送请求标题)
- Open an HTTP monitor on your desktop and route your iOS 8 device
through it
- Login
- Add a file
- Hit Upload
- It gets stuck on Initializing (which is sending request headers)
即使在http://m.facebook.com
- 尝试将照片添加到您的状态并失败。
This is the case even on http://m.facebook.com
- Try to add a photo to your status and it fails.
当请求包含文件时,此仅发生。无论在文件输入中启用/禁用多个,这都是可重现的。在iOS 8上Chrome上传工作正常。
This only happens when the request contains a file. This is reproducible irrespective of having multiple enabled/disabled in the file input. Uploads work fine on Chrome on iOS 8.
其他人是否也遇到过这种情况?有没有办法在iOS 8 Safari上通过HTTP成功发送文件?
Did anyone else experience this too? Is there a way to successfully send files over HTTP on iOS 8 Safari?
推荐答案
这是iOS 8.0.0中的一个错误在8.0.2中修复。文件正文不包含在请求有效负载中,但 Content-Length
设置为好像。
This was a bug in iOS 8.0.0 and was fixed in 8.0.2. The file body is not included in the request payload, but Content-Length
is set as if it is.
请参阅博客文章 在iOS 8上的Safari 中文件上传似乎已被破坏。
See blog post File uploads appear to be broken in Safari on iOS 8.
这篇关于在iOS 8.0.0 GM Safari上通过HTTP上传文件失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!