Well, here's one "problem", sort of:
imagejpeg($imageResized, $uploadsDirectory.'resized'.$now.'.jpg', 85);
Try adding a space before and after each "." where you cat the filename together. I ALWAYS use spaces with I cat stuff, even though there doesn't seem to be a need to do so according to...