How to allow .webp image uploads in OJS? (Currently restricted to JPEG)

Hello,

I am using OJS 3.4.0-9 and I found that the system only allows JPEG/JPG for image uploads in several sections (e.g., journal logo, homepage image, cover image, etc.).

I would like to enable support for .webp image files, but OJS currently blocks the upload and displays an error because WEBP is not included in the allowed MIME types.

My questions is:

  1. How can I modify OJS so that WEBP files are accepted during image upload?

Any guidance or documentation would be very helpful. Thank you.

Hi @kbh,

Issues with specific filetypes often has to do with MIMEtype configurations. See our documentation here: https://docs.pkp.sfu.ca/faq/en/errors-troubleshooting#error-message-on-upload-no-file-uploaded-or-invalid-file-type

If you search for your issue here on the forum, you’ll likely find people would’ve encountered similar situations and can offer advice for how to fix the issue.

-Roger
PKP Team