72350/browse-bucket-image-downloading-instead-displaying-browser
Hi Guys,
I am trying to browse an image from my s3 bucket. But the image is downloading instead of displaying in the browser. How can I solve this problem?
Hi@akhtar,
You have to pass the content_type of your file or image. For an example, if your image is in .png format then use the below-given code.
content_type = "image/png"
I hope this will help you.
1 <class 'boto.s3.key.Key'> <Key: numbers-email, staging/Procured_Numbers_Status/procured_numbers_status_2019-05-15:06:09:04.csv> I ...READ MORE
You can take a look at the ...READ MORE
If you are referring to the number of objects ...READ MORE
You can use a for loop to ...READ MORE
Check if the FTP ports are enabled ...READ MORE
To connect to EC2 instance using Filezilla, ...READ MORE
Hi, Here for the above mentioned IAM user ...READ MORE
I got a discussion on aws forum ...READ MORE
toast is good READ MORE
Hi@Shubh, According to my knowledge, you can't edit ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.