Reply to no file uploaded & no messages to page

no file uploaded & no messages to page new!
by jon, 17 years, 4 months ago
Testing with the following code snippet and trying to upload 4 meg jpeg. I can successfully upload an image file no larger than a meg. When I try larger files, I get no message "file too big"...abolutely nothing printed to web and nothing in apache's error_log.

To test I have opened throttle on php.ini (and restarted apache):
php.ini:
upload_max_filesize = 30 M
post_max_size = 30M


include("class.upload.php");
$handle = new upload($_FILES['image_field']);
if ($handle->uploaded) {
  $handle->auto_create_dir = false;
  $handle->process('Test');
  if ($handle->processed) {
    echo 'file uploaded';
    $handle->clean();
  } else {
    echo 'error : ' . $handle->error;
  }
}

ThanksReply

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