Reputation: 1538
I've looked others answers about this question but didn't find what I am looking for.
I am uploading file to S3 from the browser using an ajax POST request. The signature is generated and send to the client from the server. I limit file upload size to 3MB using ['content-length-range', 0, 3000000]
and it works.
Here is my issue. If I upload a bigger file, let's say 25MB, the file is first entirely uploaded, then S3 send back an error because the file is too large. But the error is only sent after it was fully uploaded and rejected, so It seems I used AWS bandwith.
If the file is then rejected by AWS, will I be billed for the bandwith used during my POST request?
Upvotes: 1
Views: 1049
Reputation: 121
As jarmod replied, you won't be charged for put requests (income data transfer).
Also, if you can manage restrictions on client side to prevent large uploads, it is good enough.
Upvotes: 1
Reputation: 78573
All data transfer into S3 is free.
See the S3 pricing page for more details.
Upvotes: 2