Reply to Blank Page after upload.

Blank Page after upload. new!
by Vinicius Sato, 12 years, 9 months ago
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.

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));
Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important