AWS S3 storage
Uploadcare allows you to upload files directly to your AWS S3 storage.
You may want to choose this option when you:
- Implement custom file workflows that are integrated deeply into your system.
- Follow company storage policies pointing at specific buckets.
How it works
You need an Amazon Web Services account with creating a new or selecting an existing bucket in S3 bucket management.
- Files are uploaded to the AWS S3 storage directly.
- Files will be served from your storage or a third-party CDN, and image processing operations can be applied to them.
Note: AWS S3 storage is available on the Enterprise plan. Contact our sales.
Setting up S3 bucket
Enter your AWS S3 console and configure your S3 bucket:
- Open Buckets section.
- Open an existing bucket or create a new one.
Use DNS-compliant lowercase bucket names such as
johnsbucket1
. - Check Block public access settings if you need to give public access to copied files (all checkboxes are checked by default).
- Go to the Permissions tab on your bucket’s properties pane
and add the following settings to your Bucket Policy
(where replace
<bucket>
with the name of your AWS S3 bucket): - Click Edit in the Cross-origin resource sharing (CORS) section.
- Add the CORS policy configuration:
You can specify exact hostnames in the AllowedOrigins section for extra security.
Learn more about CORS configuration. - Save your Bucket settings and Connect.
Connecting AWS S3 bucket
Connect the S3 bucket to Uploadсare in the following ways:
- Create a new project.
- Add the S3 bucket to an existing project without any uploaded files.
Сreate a new project
To connect your own AWS S3 bucket to the new Uploadcare project:
- Сreate a new project in the Dashboard.
- Select the option Your own AWS S3 bucket.
- Add S3 bucket name.
- Check that the S3 bucket settings comply with the recommendations given above.
Uploadcare will run tests to ensure it can connect and upload the files to the bucket.
Add to an existing project
Add the S3 bucket to an existing project without uploaded files:
- Open a Storage settings section.
- Go to Connect S3 bucket and click Connect bucket to connect your S3 bucket to Uploadcare project.
- Add S3 bucket name.
- Click Connect.
Note: Uploadcare only handles files uploaded through our service. We recommend starting with an empty bucket.
Delete files
When you delete files from AWS S3 storage, links to them remain in our Dashboard, but the files themselves are not on the Uploadcare side. You need to delete file entries in the Dashboard or through REST API Delete file method to make these links disappear.