RE: [PHP] file uploads & windows clients

From: Date: Tue, 28 Aug 2001 07:54:35 +0000
Subject: RE: [PHP] file uploads & windows clients
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-64742@lists.php.net to get a copy of this message
I suggest you to check www.zend.com/zend/spotlight/uploading.php Bst Rgds Pere "Gerard Samuel" <trini0@optonline.net> escribió en el mensaje news:3B8B13E0.8070601@optonline.net... > Ok, I tried the to replicate on different browsers. Microsoft IE 5.5 ,6 > beta & Opera 5 all show this problem. > Here are some snippets of the code that Im using. Thanks > > <---snip---> > echo "<form action=\"$PHP_SELF\" method=\"POST\" > enctype=\"multipart/form-data\">\n"; > > <---snip---> > echo "&nbsp &nbsp<input type=\"file\" > name=\"pic\"><p>\n"; > > <---snip---> > if ($pic_type != "image/jpeg") { > echo "Please let the picture be in jpeg format. > Thanks.<br>\n"; exit(); > } > > > Gerard Samuel wrote: > > Hey all. I have a problem. I made a script that handles file uploads, > > and all the while I was testing on mozilla and netscape, totally forgot > > about IE. I have it set to only accept jpeg pics. It works no problem > > on mozilla and netscape, but IE isnt do too well. When I try to upload > > a jpeg, it spits out that its not a jpeg file. Not sure if the mime > > type is different for windows about jpegs. Anyone encountered this > > before. I didnt find anything in the archive. > > Thanks > > > > php 4.0.6, apache 1.3.20, mysql 3.23.40 > > Thanks all. > > > > > >

« previous php.general (#64742) next »