Reply to Re: ie upload problem

Re: ie upload problem new!
by javier, 17 years, 10 months ago
the form :

the code:
$MyObject = new upload($_FILES['archive_image']);
if ($MyObject->uploaded) {
  $MyObject->file_new_name_body = "imagen_contenido";
  $MyObject->file_overwrite = true;
  $MyObject->file_auto_rename = false	;
  $MyObject->image_convert = 'jpg';
  $MyObject->allowed = array('image/jpeg','image/jpg','image/gif','image/png');
  $archive_image_sended= "imagen_contenido.jpg";
  $MyObject->image_resize         = true;
  $MyObject->image_x              = 580;
  $MyObject->image_ratio_y        = true;
  $MyObject->process('/home/***********/resources/22');
  if ($MyObject->processed) {
    echo 'image resized';
    $MyObject->clean();
  } else {
	echo 'error : ' . $MyObject->error;
  }
}
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