Images Question
Posted: Wed Jul 11, 2007 11:27 am
i was working on a little script to upload images and i noticed something strange ( but maybe usefull ).
i forgot to add an extension so my file ended up named like this "36." and strangly enough when i call it in a different page with
<img src=36.></img> it actually works..
when i remove the . so it just becomes "36" then it fails..
for me this could be usefull cause i wouldnt have to check if they upload a file with the same name but with a different extension cause it would all be named the same ( no extension )
anybody know anything about this? it seems to work..but is there anything i might be missing that could go wrong or something?
i forgot to add an extension so my file ended up named like this "36." and strangly enough when i call it in a different page with
<img src=36.></img> it actually works..
when i remove the . so it just becomes "36" then it fails..
for me this could be usefull cause i wouldnt have to check if they upload a file with the same name but with a different extension cause it would all be named the same ( no extension )
anybody know anything about this? it seems to work..but is there anything i might be missing that could go wrong or something?