why is it over writing

Posted on 16th Feb 2014 by admin

Code: $filepaths[] = $_FILES['new_image'];
foreach ($filepaths as $filepath)
{
$imagename = strtolower($filepath['name']);
$charref = substr($imagename, 0, strrpos($imagename, '.'));
if(ctype_alnum($charref))
{this is for a form with multiple image uploads that need to be resized. im trying to loop them thrue the resize script but it over writes as it goes untill the only img when its done is the final image field.

Other forums