PDA

View Full Version : [MEMBER-HACK] upercase image name upload fails with renamed image


twincascos
03-11-2007, 11:41 PM
Hello,
I've just started testing image upload with the JA_submit,
when I upload an image named, IMG_6126bs.jpg
the file : com_ja_submit/resize.php changes the name to:
img_6126bs.jpg but the text entry still registers the image file as IMG_6126bs.jpg
this results in a 404...
I'll be looking for a solution,
starting with this:
//CREATES THE NAME OF THE SAVED FILE
$file = $newfilename . strtolower($filename);
Yup, that worked for me, changed it to:
//CREATES THE NAME OF THE SAVED FILE
$file = $newfilename . $filename;

How about you?