I have a small problem concerning the resizing process of a given image, I am trying to submit a form containing an input type -->file<-- I was able to upload a picture witho
i just solved this problem.
change this line:
$file -> move('uploads', $fileName);
to
$file = $file -> move('uploads', $fileName);
now $file->getRealPath() has a valid value.
$file->getRealPath()
hope this works for you.