Codeigniter HTML & Apache, JPG & jpg
Posted
by
romme86
on Stack Overflow
See other posts from Stack Overflow
or by romme86
Published on 2012-12-14T11:01:00Z
Indexed on
2012/12/14
11:03 UTC
Read the original article
Hit count: 343
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.
© Stack Overflow or respective owner