Fine Uploader发布到S3返回响应代码0 [英] Fine Uploader post to S3 returns response code 0

查看:115
本文介绍了Fine Uploader发布到S3返回响应代码0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用OSX Mountain Lion的客户无法上传. Safari和Firefox中均存在问题.我能够远程进入并获取一些日志.这是控制台输出:

A customer with OSX Mountain Lion can't upload. Issue is present in both Safari and Firefox. I was able to get in remotely and grab some logs. Here is the console output:

[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问题吗?他们声称自己的计算机上没有运行任何病毒或安全程序.电脑是他们自己的,并在他们的家庭网络上.

The signature part seems to go fine. The post to Amazon just doesn't return anything. Is this a CORS issue? They claim to not be running any virus or security program on their computer. The computer is their own and is on their home network.

这是S3上的CORS配置

Here is the CORS configuration on S3

<?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>

推荐答案

超级老问题,但OP注释存储桶名称包含.,这很可能与

Super old question, but OP comments that the bucket name contains a ., which is likely related to the same issue as here:

当存储桶名称包含一个点时,端点必须为:

When bucket names contain a dot, the endpoint needs to be:

s3-{region}.amazonaws.com/{bucket-name}

没有点,以下工作:

{bucket-name}.s3.amazonaws.com

这篇关于Fine Uploader发布到S3返回响应代码0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆