I have a function that suppose to get a image file from the POST request. I'm using image_moo as a external library to resize the image before saving.
Here's my function
$dest = $_SERVER['DOCUMENT_ROOT'] . '/refundstylesheet/uploads/images/' . $_FILES['upfile']['name'];
$temp_file = $_FILES['upfile']['tmp_name'];
$this->image_moo->load($temp_file)->resize(350,350)->save($dest, TRUE);
I don't get any error message, it simply doesn't save the image on the server.
echo $dest:** /var/www/html/refundstylesheet/uploads/images/image.png
echo $temp_file:** /tmp/phpFIQp6S
I did all the necessary verifications with the uploaded file before reachs this function.