PDFs downloading instead of opening inline in browser after upgrading to OJS 3.5.0.5

OJS Version: Upgraded from 3.4.0.10 to 3.5.0.5
PHP Version: PHP 8.x
Server Environment: cPanel / Apache
Description of the Issue:
After successfully completing a manual/terminal upgrade from OJS 3.4.0.10 to OJS 3.5.0.5 (php tools/upgrade.php upgrade), published article PDF galleys no longer open inline in the browser embedded viewer. Instead, clicking the PDF link forces a direct file download.
Troubleshooting Steps Already Attempted:

  1. Cleared both Data Cache and Template Cache via Administration and terminal (php tools/clearCache.php).
  2. Verified that pdfJsViewer is enabled under Website Settings → Plugins.
  3. Ran php tools/upgrade.php upgrade again to verify all core database migrations and default plugin files are up to date.
  4. Checked .htaccess—no Content-Disposition: attachment headers are present.
  5. Tested across multiple browsers (Chrome, Safari, Incognito mode), but PDFs continue to download rather than display in the PDF.js canvas viewer.

Could anyone advise if there are specific asset compilation steps, database records, or permission adjustments needed for the PDF viewer plugin in OJS 3.5.0.5?

Hi @IJELLH,

This was similarly reported here: Articles not opening in browser - #21 by srinivasanchelliah

Can you try what is suggested in that post (related to the MIME type configuration)

-Roger
PKP Team