Codeigniter HTML & Apache, JPG & jpg
- by romme86
Hi i'm using codeigniter to save some jpg/JPG files on the webserver.
The problem is i don't know if all of the files extension will be the same: jpg/JPG
so on rendering i put a tag like this
<img src="/.../name.JPG"/>
in this way if the uploaded file is a .jpg it will not be displayed.
the solution i'm going to use is a simple redundance of the tag HTML:
<img src="/.../name.JPG"/>
<img src="/.../name.jpg"/>
this way if one is not rendered the other is
i would like to know if this problem can be resolved in php or codeigniter by changing the file extension on upload.