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.
I'm using the last version and I always get a blank page after:
$handle = new Upload($_FILES['image_field']);"
Anything I echo before it will be printed with no problem whatsoever, but it just tilt after this line. Not even try/catch stop it from happening. I even checked for memory limit, it's 100M and my folder permissions are 777.
Anything I echo before it will be printed with no problem whatsoever, but it just tilt after this line. Not even try/catch stop it from happening.
I even checked for memory limit, it's 100M and my folder permissions are 777.
Here is the code:
try { $handle = new Upload($_FILES['image_field']); } catch(Exception $e) { echo $handle->log; } /*$handle->file_dst_path = "downloads/"; echo "blabla"; if ($handle->uploaded) { $handle->file_new_name_body = 'image_resized'; $handle->process('downloads/'); if ($handle->processed) { echo 'image resized'; $handle->clean(); } else { echo 'error : ' . $handle->error; } } */ $idsalvo = salvarTipoAuditoria(($_POST["id"]?$_POST["id"]:NULL),utf8_decode($_POST["tipo"]),utf8_decode($_POST["descricao"]),$imagem,time(),($_POST["status"]?$_POST["status"]:1));