Not a bug UPPERCASE file extensions rewritten as lowercase...

Affected version
2.0.2
#1
We have some images stored on a CDN that are UPPERCASE extensions, for example .JPG.

XF2 is writing these as lowercase, and the files are not found.

Example: https://cdn1.28dayslater.co.uk/xf/2017/10/1484786_f9e1c8a1b961df6ac0c1aec00e88d19f.jpg

This image extension is supposed to be UPPERCASE. Click it once to see the 404 error, then change the extensions case to see the actual image.

Urgently need a way to stop XF2 messing with this.
 

Chris D

XenForo developer
Staff member
#2
Those URLs aren't in a format that XF generates for attachments. I suspect you have an add-on involved here.

When we save attachments, the original filename (in the original letter case) is saved as is.
 
#3
When we save attachments, the original filename (in the original letter case) is saved as is.
That's exactly the point. Some have a lower case extension, some have an uppercase extension. Yes we use @xfrocks CDN uploader thing, that changes the filename not the extension or case of the extension.

Since XF2, none of the UPPERCASE extensions work anymore, because XF2 changes the link to lowercase.
 

Chris D

XenForo developer
Staff member
#5
Yeah but the CDN uploader must be generating those links. The links we'd generate are attachments/some-string-filename-jpg.1234. Have you reported the issue to the add-on author because obviously we have no involvement in what's uploaded to the CDN, what returns the correct link to the file on the CDN etc. so there's really no way we could be re-writing those URLs.
 
Top