Re: $_FILES associative array

From: Date: Fri, 06 Dec 2002 18:37:00 +0000
Subject: Re: $_FILES associative array
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-127298@lists.php.net to get a copy of this message
On Saturday 07 December 2002 01:10, Tom Rogers wrote: > > If your input is like this: > > <input type="file" name="userfile" size="52" /> > > The array you get would look like this: > > $_FILES['userfile']['name'] The original name of the file on the client > machine. > > $_FILES['userfile']['type'] The mime type of the file, if the browser > provided this information. An example would be "image/gif". > > $_FILES['userfile']['size'] The size, in bytes, of the uploaded file. > > $_FILES['userfile']['tmp_name'] The temporary filename of the file in which > the uploaded file was stored on the server Hmm, just print_r() the damn thing and see what it contains ;-) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* In Nature there are neither rewards nor punishments, there are consequences. -- R.G. Ingersoll */

« previous php.general (#127298) next »