Reply to Re: Undefined array key "form_field"

Re: Undefined array key "form_field" new!
by cc28, 1 year, 5 months ago
$Upload = new Upload($_FILES['image_field'], 'fr_FR');
if ($Upload->uploaded) {
  $Upload->file_new_name_body   = 'image_resized';
  $Upload->image_resize         = true;
  $Upload->image_x              = 100;
  $Upload->image_ratio_y        = true;
  // $Upload->process( URL . 'public/files/');
  $Upload->process();
  if ($Upload->processed) {
    echo 'image resized';
    $Upload->clean();
  } else {
    echo 'error : ' . $Upload->error;
  }
}

How to resolve this error?
Warning: Undefined array key "form_field" inReply

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