Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The code/library/service responsible for storing the original file on S3 is most likely setting "response-content-disposition" to "attachment" when it stores the file on S3. That tells S3 to deliver the file with "Content-disposition: attachment" in the HTTP headers which is what causes browsers to save to disk instead of display.

You want "Content-disposition: inline" or no content-disposition header.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: