no file uploaded & no messages to page

See all posts Reply

no file uploaded & no messages to page new!
by jon, 16 years, 10 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
Re: no file uploaded & no messages to page new!
by colin, 16 years, 10 months ago
You are running out of memory.

Search for memory in the site, or click here.

You need to raise the PHP memory limit, with memory_limitReply