I have a chalice application
that has a defined lambda_handler
that will be triggered using s3 event notifications. Every time an image is created in my s3 bucket, the lambda_handler
function will be invoked to create thumbnails. But when you upload images to s3 using presigned_urls
, the uploaded file does not have a file extension.
The files on s3 look like this:
Now when using pillow, an error is thrown unknown extension file
.
How should I go about this?