Uploadcare allows you to connect an AWS S3 bucket to one or more of your Uploadcare projects to copy uploaded files directly to your own storage.
If you need to upload files directly to an S3 bucket, use AWS S3 storage.
It allows the same bucket to be connected to different projects.
Note: A file storing on Uploadcare side can be temporary. If you don’t store files, our system deletes them in 24 hours. Check out file storing behavior for more details.
When handling images with image processing operations, you can request Uploadcare to copy processed versions to your AWS S3 bucket.
You need an Amazon Web Services account with creating a new or selecting an existing bucket in S3 bucket management.
Select a storage settings in your Dashboard, go to “Copy uploads to S3 bucket” and click “Connect bucket” to connect your AWS S3 bucket to Uploadcare project.
johnsbucket1.<bucket> with the name of your AWS S3 bucket):
The Key pattern is used to build an object key name for the copied file.
By default, it’s ${default}, which is the same as ${uuid}/${filename}${ext}.
When a file is copied to an external S3 bucket, a sanitized version of the
original filename is used for the filename part of the object key name in S3.
When sanitizing a filename, our system removes all characters except [a-zA-Z0-9_].
For example:
image-sample.jpeg → imagesample.jpegimage(1).jpeg → image1.jpeg().png → noroot.png (if no valid characters remain in the output name,
the whole name is changed to noroot).All new uploads are automatically copied from the Uploadcare storage to your AWS S3 bucket. This feature is enabled by default.
Copying via REST API is used to copy existing file from the Uploadcare storage to AWS S3 bucket.
In your request, source must contain the file UUID, and target must
include the identifier of the storage place where your files are saved.
In your request, source must contain a CDN URL or just the UUID of
a file subjected to copy, and target must include
the storage name where your files are saved.
The response JSON will contain "type": "url" and S3 object URL.
When using the remote_copy method, you can specify the key pattern
for each copy individually via the remote_copy REST API.
If the make_public parameter is ‘true’, the copied files will be available
via public links.
The maximum file size limit that applies when copying files via REST API is 5 GB.
Note: Backup copies that use our internal
copy_s3_keypath do not have an Uploadcare-level size limit. Effective limits, timeouts, and throughput depend on your storage provider and network conditions.
When copying image files via REST API, you can provide a Uploadcare URL with processing operations included.
The name of a processed file is constructed of its original filename and a set
of applied operations. For instance, the following source:
Result in the filename will be:
Our copy method returns a link to your file with ad-hoc scheme s3 in the
result member of the response object.
For example:
In this scheme, the host is represented by an S3 bucket name, and path stands
for a path to your file in the bucket. If you want to serve files directly from
S3, you can get the proper http link to your file by replacing s3:// with
http://s3.amazonaws.com/.