Re: Form Input Type="File"

From: Date: Sat, 22 Nov 2008 12:36:30 +0000
Subject: Re: Form Input Type="File"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-283649@lists.php.net to get a copy of this message
On Sat, 2008-11-22 at 06:21 -0600, Stan wrote: > This generated HTML puts up a file selection dialog . > > > > echo " <p align=center><span>\n"; > > echo " Pick a picture file to examine > ...\n"; > > echo " <form method=\"get\" > enctype=\"text/plain\" action=\"Default.php\" > target=\"_top\">\n"; > > echo " <input > name=\"ID\" type=\"hidden\" > value=\"{1BB48FF1-C6A2-4FB8-84C9-DD9615000694}\" > />\n"; > > echo " <input > name=\"SELECTEDFILE\" type=\"file\" /><br><br>\n"; > > echo " <input > type=\"submit\" value=\"Submit\" />\n"; > > echo " </form>\n"; > > echo " </span>\n"; > > > > . which results in this URL . > > > > > http://frames.stan-and-jeanne.com/Default.php?ID=%7B1BB48FF1-C6A2-4FB8-84C9-DD9615000694%7D&SELECTEDFILE=%5C%5CNasserver%5CPicturesMaster%5C2004-07-31_Guadalupe_River_rafting_roll-1%5C0033126-R1-042-19A_20.jpg > > > > . with IE 6 SP 1 and this URL . > > > > > http://frames.stan-and-jeanne.com/Default.php?ID={1BB48FF1-C6A2-4FB8-84C9-DD9615000694}&SELECTEDFILE=0033126-R1-042-19A_20.jpg > > > > . with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.4) > Gecko/2008102920 Firefox/3.0.4, even though every thing else is exactly the > same. > > > > Am I SOL? > > > The URL you are saying results from Mozilla has none of the characters escaped. Also, you seem to be missing part of the path for the jpeg: "% 5C%5CNasserver%5CPicturesMaster% 5C2004-07-31_Guadalope_River_rafting_roll-1%5C" How are you actually handling the form submission? Ash www.ashleysheridan.co.uk

« previous php.general (#283649) next »