我已按照本教程:https://www.designedbyaturtle.co.uk/2013/direct-upload-to-s3-with-a-little-help-from-jquery/
除非我尝试上传大文件,否则一切正常。我还启用了文件分块,并将块的最大文件大小设置为5mb。然而,当我尝试上传大约70mb的文件时,错误仍然存在,随机出现。有时它甚至可以工作,但大部分时间它都没有。
以下是我得到的回复:
Remote Address:54.231.17.48:80
Request URL:http://s3.amazonaws.com/.../
Request Method:POST
Status Code:400 Bad Request
响应标题:
Access-Control-Allow-Methods:HEAD, GET, PUT, POST, DELETE
Access-Control-Allow-Origin:*
Access-Control-Expose-Headers:ETag, x-amz-meta-custom-header
Access-Control-Max-Age:30000
Connection:close
Content-Type:application/xml
Date:Mon, 12 Oct 2015 14:07:00 GMT
Server:AmazonS3
Transfer-Encoding:chunked
Vary:Origin, Access-Control-Request-Headers, Access-Control-Request-Method
x-amz-id-...
x-amz-request-id:...
回复机构:
<Error>
<Code>
RequestTimeout
</Code>
<Message>
Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
</Message>
<RequestId>
7699FD31BA7905C6
</RequestId>
<HostId>
...
</HostId>
</Error>
我该如何使这项工作?它在某些时候有效,但并非在所有时间都有效。