AWS S3: How To Display Image In Browser Without ContentType

Is there a way to display images in browser without loading them if they don't have ContentType tag on AWS S3

'ContentType' =>'image/jpg'

      

I figured this was a fix for images to be loaded, so I implemented it, but the 100 images already on AWS S3 server are still loading in the browser.

A potential solution is to recursively change the tag using s3cmd https://serverfault.com/questions/725562/recursively-changing-the-content-type-for-files-of-a-given-extension-on-amazon-s

But i want to know if i can do it using php when i get images ???

+3


source to share





All Articles