1 Answer
- Newest
- Most votes
- Most comments
1
To overcome the 2 MB file size limitation in your backend client application while still using the presigned URL solution, you can consider the following approaches:
Multipart Upload: Amazon S3 supports the Multipart Upload API, which allows you to upload large objects in parts. This can be useful when uploading files larger than 2 MB. You can use the AWS SDK or AWS CLI to implement the Multipart Upload process.
Example AWS CLI command for Multipart Upload:
aws s3 mb s3://your-bucket-name
aws s3 mv local-file.txt s3://your-bucket-name/remote-file.txt --multipart-upload
Streaming Uploads: Instead of uploading the entire file at once, you can stream the file data to S3 using a presigned URL. This can help overcome the 2 MB limitation by sending the data in smaller chunks.
answered a year ago
Relevant content
- asked 7 months ago
- asked 9 months ago