There is a passthrough rule in .platform.app.yaml to whitelist static asset file extensions such as jpg, jpeg, gif, png, woff, woff2, svg etc.
However the Regular Expression used in this whitelist rule is case sensitive and thus supports lowercase file extensions only, so if a user uploads an image with file extension .JPG or .JPEG Platform.sh's router server will return a fast 404 before it even gets a chance to make it to the application server.
There is a passthrough rule in .platform.app.yaml to whitelist static asset file extensions such as
jpg
,jpeg
,gif
,png
,woff
,woff2
,svg
etc.However the Regular Expression used in this whitelist rule is case sensitive and thus supports lowercase file extensions only, so if a user uploads an image with file extension
.JPG
or.JPEG
Platform.sh's router server will return a fast 404 before it even gets a chance to make it to the application server.Sister tickets: