Upload limit for AWS S3

Asked

Viewed 462 times

0

I’m working with the Amazon S3 and AWS SDK for PHP.

  • Is there a file size limit to send?

  • Is there any simultaneous upload limit?

It has given me a lot of these errors when I try to send 20 200MB files simultaneously to my Bucket.

Requesttimetooskewedexception: AWS Error Code: Requesttimetooskewed, Status Code: 403, AWS Request ID: 0CE24AEDE4162AC9, AWS Error Type: client, AWS Error Message: The Difference between the request time and the Current time is Too large.

Requesttimeoutexception: AWS Error Code: Requesttimeout, Status Code: 400, AWS Request ID: 913367E51F2BC5AD, AWS Error Type: client, AWS Error Message: Your socket Connection to the server was not read from or Written to Within the timeout period. Idle Connections will be closed.

It’s either my code or PHP problem?

  • Make sure the clock is correct on the computer.

1 answer

2

First by answering your question:

  • Is there a file size limit to send?

Yes. Using upload in single Operation the limit is 5GB. For Multipart the limit is 5TB. Amazon recommends using Multipart for files larger than 100MB.

The mistake RequestTimeTooSkewedException usually occurs when your watch is wrong and you check comparing your watch to Amazon’s:

# Hora na Amazon (UTC)
$ curl http://s3.amazonaws.com -v

# Hora na sua Máquina (UTC)
$ date -u

However the error RequestTimeoutException is probably occurring because your internet connection is slow.

If your watch is right then your uploads are probably taking more than 15 minutes, to mitigate this I recommend you use Multipart upload.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.