Fix issue with files/images not working with uppercase extensions when adding them from an outside path or URL.