Hello, get the same problem.
PDF file does not display but always download , whatever config I have on my explorer (chrome, firefox)
From what I am reading this is related with content_type for the file
I have found this
Great question! What defines that action is the “Content-type” header sent from the server to the client. You can define the value of this header using s3-compatible tooling. There is a good explanation of this here:
https://stackoverflow.com/questions/39832289/pdfs-in-amazon-s3-dont-open-in-chrome-for-view
But I haven’t been able to progress.
It seams the issue is indicate Content-Type or content-disposition but I don’t know if I have to do it at uploading,
Perhaps some expert can help us.