Odd.
Today I have tried uploading a webp file and got the correct message that this is not an allowed file type.
But, looking in the relevant image storage folder on the site, the previously noted webp files are there including thumbnails calculated in webp format.
I’m afraid Ewz only checks the file type provided by the machine doing the uploading. It does not actually examine the file contents, so this may well happen occasionally.
That’s not it. The relevant file is actually named with a .webp file type. The contents also happen to be webp format. My local procedures down the line copy and rename the file using the title and author and applying the .jpg type, which meant the file wouldn’t display in the competition software as the content didn’t match the type. That is what alerted me.
So the file was accepted for upload from one of my users. It appears in the ‘Manage Entries’ display of the webform with the .webp file type clearly stated. It is in the image storage folder with the .webp file type. I had downloaded it with that file type as referenced from the event spreadsheet. I therefore received the file in .webp format and with the .webp type, so I have a local copy of it.
Now, if I try to upload that local copy as a new entry (to a different but matching webform so there is no duplication) I get the refusal message.
My installation has the imagik feature so WordPress is quite happy with the format internally. The oddity is how a .webp type file got through the EntryWizard checks before but not now.
After some thought I have found and tested the answer.
The user tried to upload a webp file and was refused. The user then changed the filetype value from webp to jpg so that the file could be uploaded. WordPress itself looked at the file format in order to make the thumbnail; discovered that the file was in webp format; and changed the file type extension to that value for both the uploaded file and the thumbnail. The same explanation may apply to the .png file which I had uploaded three years ago.
You just cannot prevent some people from messing up!