class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
Strange problem. On localhost everythink works fine but on Hosting I have this error:
Local file doesn't exist. source is a local file C:\Users\atomp3\Pictures\cars\Ford_Mondeo_04.jpg
Directory is set to 777
function uploadFile($x) {
$objResponse = new xajaxResponse();
$handle = new Upload($x['file_name']);
// then we check if the file has been uploaded properly
// in its *temporary* location in the server (often, it is /tmp)
if ($handle->uploaded) {
if ($handle->processed) {
// we now process the image a second time, with some other settings
$handle->file_overwrite = true;
$handle->image_resize = true;
$handle->image_ratio_y = true;
$handle->jpeg_quality = $x['file_q'];
$handle->image_x = $x['file_width'];
//$handle->file_new_name_body = $x['file_name'];
$handle->Process('images/'.$x['file_path'].'/');
} else {
$objResponse->call('xajax_atompAjax.Message','error','Upload failed || '.$handle->error.$handle->log.'');
}
}
}
Strange problem. On localhost everythink works fine but on Hosting I have this error:
Local file doesn't exist. source is a local file C:\Users\atomp3\Pictures\cars\Ford_Mondeo_04.jpg
Directory is set to 777
Thanks for any help.