As per the Amazon multipart upload documentation the Each part must be at least 5 MB in size, except the last part. http://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadUploadPart.html
Question is how do I upload a file less than 5MB through multipart upload api to AWS S3 bucket. The reason I am asking this that I want to use multipart upload API for all files when uploading to S3
You can still upload it using multipart upload, the same as you would a larger file... but you have to upload it with only one part.
The rule enforced by S3 is that all parts except the last part must be >= 5MB. If the first part is also the last part, this rule isn't violated and S3 accepts the small file as a multipart upload.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With