-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image corruption when uploading to S3 using Boto3 in Lambda #4229
Comments
Hey @xanderbilla, thanks for reaching out. Could you provide debug logs of uploading an image that exhibits this behavior? You can debug logs by adding |
Thank You for your response @RyanFitzSimmonsAK . Here is the log you requested and what happen to the image when I try to open them they show image not supported
|
Hey, thanks for providing those. I see that your user agent contains 'PostmanRuntime/7.39.1'. If you try to upload this image using exclusively Boto3 and Lambda, are you still getting this behavior? Full debug logs would preferable, showing client initialization, request, and response. Thanks! |
Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
Describe the bug
Original issue : aws/aws-sdk#799
I'm encountering an issue when uploading image files to S3 using Boto3 in a Lambda function. The uploaded image is corrupted.
Image format: JPG
S3 bucket settings: No Public Access, no specific ACLs or encryption.
Lambda environment: Python 3.12
I've tried different image formats and S3 configurations without success. Any help would be appreciated.
Expected Behavior
The image should be uploaded to S3 without corruption.
Current Behavior
The uploaded image is corrupted and cannot be viewed correctly.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
SDK version used
Unknown
Environment details (OS name and version, etc.)
Python 3.12
The text was updated successfully, but these errors were encountered: