When I programatically upload a file to my S3 Bucket I end up with a 0 Byte file but the name of the file and the folder is good.
myfile = request.files["myfile"]
myfile.seek(0, os.SEEK_END)
s3.upload_fileobj(
myfile,
MY_BUCKET_NAME,
folder_name + "/" + my_filename,
ExtraArgs={
"ContentType": myfile.content_type
}
)
Everything seems to work as I have no error and the file is registered at the expected location but its size is 0 B. I am using postman to upload the file.
Any suggestion ?