Re: file upload question

From: Date: Thu, 05 Apr 2001 08:32:18 +0000
Subject: Re: file upload question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47201@lists.php.net to get a copy of this message
Joe Stump wrote: > > I'm in the habit of putting all my form variables into an array (ie: > <input type="text" name="f[firstname]" value="<? echo > $f['firstname']; ?>">) so > that I have a nice little package to pass to functions. My question is can you > put files into those as well? If so how does it handle the $file_name and > $file_size variables PHP creates? > > --Joe > > /******************************************************************************\ > * Joe Stump - PHP/SQL/HTML Developer * > * http://www.care2.com - > http://www.miester.org - ïsg+r‡MI l > û<%¾http://gtk.php-coder.net * > * "Better to double your money on mediocrity than lose it all on a dream." * > \******************************************************************************/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net Yes. You can just make a file-upload element in your form. E.g.: <INPUT type="file" name="f[myFile]"> In your "result-page" you can use the uploaded file pretty straightforward: temp-filename: $f[myFile] filename: $f_name[myFile] size: $f_size[myFile] mimetype: $f_type[myFile] -- * R&zE: *************************** ** Renze Munnik ** ** E: renze@datalink.nl ** M: +31 6 218 111 43 ***************************

« previous php.general (#47201) next »