jubos / fake-s3

A lightweight server clone of Amazon S3 that simulates most of the commands supported by S3 with minimal dependencies
2.94k stars 355 forks source link

[Question]: Are files actually created when uploading or is file creation simulated? #250

Open Faolain opened 4 years ago

Faolain commented 4 years ago

Apologies if this question is daft but I'm attempting to see if I can retrieve the file I uploaded to the "fake" bucket using put_object. I can see the file when listed via list_objects and when I visit the url http://localhost:4567/path/to/file.jpg I am able to download the file however the original file is 1.8mb yet the downloaded file is only 51 bytes and is unable to be opened. Is this expected behavior? In other words, does fakeS3 simulate uploading but does not actually upload a "real file"? Appreciate any assistance here, thanks in advance!