Reply to Process() cutting out.

Process() cutting out. new!
by Joseph, 16 years, 3 months ago
I am experiencing some weird effects. Sometimes the class executes properly and other times it returns errors.

This is the code that I am using...
$handle = new upload($_FILES['shirt_front']);
if ($handle->uploaded) {
  $handle->file_new_name_body = $name;
  $handle->image_x = 720;
  $handle->image_y = 720;
  $handle->image_resize = true;
  $handle->allowed = array('image/*');
  $handle->image_convert = 'jpg';
  $handle->file_max_size = 1024 * 300;
  $handle->process(DIR_WS_IMAGES . 'shirtPix/');
  if ($handle->processed) {
    $handle->clean();
    return 'success';
  } else {
    return $handle->error;
  }
}
Sometimes it goes through properly and other times it stops. It has worked for a jpg and a gif, and then I try to send a different jpg and it gets stopped.

I know it is the line of code that calls the process method because I put an echo before and after and it only said the first one.

I looked in the php error log and it didn't even throw an error there. So now I am lost as to what is happening.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