Not able to browse image from s3 bucket image downloading instead of displaying in browser

0 votes

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?

Jun 16, 2020 in AWS by akhtar
• 38,260 points
13,279 views

1 answer to this question.

0 votes

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.

answered Jun 16, 2020 by MD
• 95,460 points

Related Questions In AWS

0 votes
0 answers

I want to get file name from key in S3 bucket wanted to read single file from list of file present in bucket

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

May 15, 2019 in AWS by anonymous
6,971 views
0 votes
2 answers

How to access files in S3 bucket from R?

You can take a look at the ...READ MORE

answered Aug 10, 2018 in AWS by Deepthi
• 300 points
6,633 views
+1 vote
1 answer

Llimit to number of objects in a S3 bucket

If you are referring to the number of objects ...READ MORE

answered Oct 12, 2018 in AWS by Archana
• 4,170 points
4,680 views
0 votes
1 answer
0 votes
1 answer
+2 votes
1 answer

<Error> <Code>AccessDenied</Code> not able to connect s3 bucket.

Hi@akhtar, You have to give permissions to your ...READ MORE

answered Jun 3, 2020 in AWS by MD
• 95,460 points
29,490 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP