使用 OSX Mountain Lion 的客户无法上传。Safari 和 Firefox 都存在问题。我能够远程进入并获取一些日志。这是控制台输出:
[13:02:17.497] [FineUploader 3.8.2] Submitting S3 signature request for 0
[13:02:17.497] [FineUploader 3.8.2] Sending POST request for 0
[13:02:17.568] POST http://removed/signature [HTTP/1.1 200 OK 462ms]
[13:02:18.034] OPTIONS http://mybucket.removed/ [0ms]
[13:02:17.985] no element found @ http://removed/the/url/of/the/uploader
[13:02:17.979] [FineUploader 3.8.2] Sending upload request for 0
[13:02:17.984] [FineUploader 3.8.2] Received response status 0 with body:
[13:02:17.986] [FineUploader 3.8.2] Waiting 5 seconds before retrying file.jpg...
签名部分似乎很顺利。发给亚马逊的帖子没有返回任何内容。这是CORS问题吗?他们声称没有在他们的计算机上运行任何病毒或安全程序。计算机是他们自己的,并且在他们的家庭网络上。
这是 S3 上的 CORS 配置
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>removed</AllowedOrigin>
<AllowedOrigin>removed</AllowedOrigin>
<AllowedOrigin>removed</AllowedOrigin>
<AllowedOrigin>removed</AllowedOrigin>
<AllowedOrigin>removed</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<ExposeHeader>ETag</ExposeHeader>
<AllowedHeader>*</AllowedHeader>
</CORSRule>