Allow upper and mixed case in images and other files in userdata directory

It is often to upload images with upper case file extension, such as JPG. Then they are not visible in the browser With this small change this is possible.