ie upload problem

See all posts Reply

ie upload problem new!
by javier, 17 years, 5 months ago
im having problems to upload whith ie in firefox work great any sugestions?
the form is xhtmlReply
Re: ie upload problem new!
by Anubis, 17 years, 5 months ago
Can you post that form part of your HTML?Reply
Re: ie upload problem new!
by javier, 17 years, 5 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
Re: ie upload problem new!
by javier, 17 years, 5 months ago
Solved i need to use

$MyObject->allowed = array('image/jpeg','image/pjpeg','image/jpg','image/gif','image/png');

'image/pjpeg' upload type is the problem in ie
thanks for the quick responseReply
Re: ie upload problem new!
by colin, 17 years, 5 months ago
image/pjpeg has been added in the list of allowed MIME types in the last release of the class.Reply