Page MenuHomePhabricator

InstantCommons doesn't work for all-caps file extensions by default
Open, Needs TriagePublic

Description

Copying from meta-wiki thread:

On my wiki I am allowing to link to image files from Commons and from some Wikipedias. I noticed however that I was having trouble with images whose extension was in all caps, such as ".JPG".
I finally found the fix, it was in my nginx setup where I had to add capitalized versions of file extensions to the list of static files to be served directly by nginx (in Plesk, there is a "Serve static files directly by nginx" option with a list of file extensions, I simply copy - pasted the list with another capitalized version of the list, after which image files with "JPG" extensions were finally served correctly).

Event Timeline

I think it's more of an issue on the server side setup, not so much with InstantCommons itself. I fixed the issue in my nginx setup. But it would probably be better for all image files to have lower case extensions, for greater compatibility.