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 15 in AWS by akhtar
• 17,690 points
113 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 15 by MD
• 40,740 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
934 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
3,646 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,150 points
52 views
0 votes
1 answer
0 votes
1 answer
0 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 in AWS by MD
• 40,740 points
87 views