Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS S3 object delete while downloading

Tags:

amazon-s3

What happens when you are downloading an AWS S3 object and you delete the object when the download is in progress? Will the download complete with full object? Or will the download be partial?

like image 660
Krishna Srinivas Avatar asked Feb 12 '23 22:02

Krishna Srinivas


1 Answers

That's one funny question, and I've just did an experiment by below step:

  1. Uploaded a 100mb video onto my s3 bucket.
  2. Download it with my browser.

  3. Instantly delete the file on the s3 console with browser.

OR 3. Instantly delete it with PHP deleteObjects function.

Result: Download still goes on until its completion. No file size loss at all.

like image 105
stonyau Avatar answered Feb 14 '23 12:02

stonyau