[OJS 3.1] PDF viewing problem

Hello anyone,

We just published an issue and had to replace an article.
I noticed that that replaced article, and others, are being downloaded, while other can be viewed on the browser. We used the same specs to generate the PDF from InDesign…

Any ideas why this is happening?
Enabling the PDF.js viewer has little to no impact.
If disabled, all PDFs are downloaded…

Hello all,

Just discovered that commenting the mime path enables showing PDFs on browser, instead of download. What could be the problem?
This also has an effect on uploading issue cover images. When enabled, PNG and JPG files cannot be uploaded at all.
[finfo]
;mime_database_path = /etc/magic.mime