no it doesn't work, it returns this: Warning: getimagesize(Array) so its not getting the image from the form.... hmmm
cheers, - Sebastian ----- Original Message ----- From: "daniel" <[EMAIL PROTECTED]> | well does this not work ? $imagewidth = getimagesize($_FILES['image']); | | and i already have mimetypes checking in my modded pear uploader class, so it | can send error handling bak | | >===== Original Message From "Sebastian" <[EMAIL PROTECTED]> ===== | >What? the ACCEPT? yes it can be done :) | > | >http://www.w3.org/TR/REC-html32.html#rfc1867 | > | >cheers, | >- Sebastian | > | >----- Original Message ----- | >From: "daniel" <[EMAIL PROTECTED]> | > | > | >| wow wots this | >| | >| <INPUT maxLength=128 name=image type=file ACCEPT="image/jpeg, image/jpg"> | >| | >| this is a first i never knew you could do that ? | >| | >| $imagewidth = getimagesize($_FILES['image']); | >| ===== Original Message From "Sebastian" <[EMAIL PROTECTED]> ===== | >| >little problem with getimagesize function. I have a form upload and want | >the | >| >images resized only if greater than 1024, if greater than 1024 then i | >want | >| >it to resized, the problem is i do not know if getimagesize is getting | >the | >| >form data: | >| > | >| > | >| ><FORM action="" encType="multipart/form-data" method="post" | >name="sendform"> | >| ><INPUT name=MAX_FILE_SIZE type=hidden value=10000000> | >| ><INPUT maxLength=128 name=image type=file ACCEPT="image/jpeg, image/jpg"> | >| ><INPUT name=Submit type=submit value=Submit> | >| ><INPUT name=Reset type=reset value=Reset> | >| > | >| >// some if's ....... | >| > | >| >$imagewidth = getimagesize($form_data); | >| > | >| >if($imagewidth[0] >= "1024") { | >| >$img_width = "1024"; | >| >} else { | >| >$img_width = "*"; | >| >} | >| > | >| >// rest of the script to resize....... | >| > | >| >so an i doing it the proper way of getting $form_data? | >| > | >| > | >| >cheers, | >| >- Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php