I'm trying to upload a large file (1 GB and larger) to Amazon Simple Storage Service (Amazon S3) using the console. However, the upload persistently fails. How can I fix this?

For large files, Amazon S3 might separate the file into multiple uploads to maximize the upload speed. This results in multiple calls to the backend service, which can time out, depending on the connectivity status of your web browser when you access the Amazon S3 console.

Instead of using the Amazon S3 console, try uploading the file using the AWS Command Line Interface (AWS CLI) or an AWS SDK.

AWS CLI

First, install and configure the AWS CLI. Be sure to configure the AWS CLI with the credentials of an AWS Identity and Access Management (IAM) user or role that has the correct permissions to Amazon S3.

Then, to upload a large file, run a command similar to the following:

aws s3 cp cat.png s3://mybucket

Note: In this example, the file must be in the same directory that you're running the command from.

AWS SDK

For a programmable approach to uploading large files, consider using an AWS SDK, such as the AWS SDK for Java. For an example operation, see Upload an Object Using the AWS SDK for Java.


Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2018-12-27