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/JPGso on rendering i put a tag like this \[code\]<img src="http://stackoverflow.com/.../name.JPG"/> \[/code\]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:\[code\]<img src="http://stackoverflow.com/.../name.JPG"/> <img src="http://stackoverflow.com/.../name.jpg"/>\[/code\]this way if one is not rendered the other isi would like to know if this problem can be resolved in php or codeigniter by changing the file extension on upload.