qoomon / aws-s3-bucket-browser

Single page application to browse AWS S3 bucket content
https://qoomon.github.io/aws-s3-bucket-browser/index.html?bucket=https://s3.amazonaws.com/spacenet-dataset#
MIT License
246 stars 85 forks source link

Content downloaded instead of serving #51

Closed mrleerkotte closed 1 year ago

mrleerkotte commented 1 year ago

Just as the first issue on this repo, I would like to serve certain files without a file extension but with the right mimetype, instead of downloading it when clicked on.

https://github.com/qoomon/aws-s3-bucket-browser/issues/1

The lines from the original issue do not exist anymore, how would one go about it now?

qoomon commented 1 year ago

For me it does work as expected e.g.

Does it work on your machine?

mrleerkotte commented 1 year ago

My apologies, apparently my Content-Disposition was not configured correctly. For future reference to anyone facing this issue, make sure to set your Content-Disposition to inline.

Regards,

Marlon