note 110096 deleted from reserved.variables.files by aharvey

From: Date: Wed, 19 Sep 2012 01:46:20 +0000
Subject: note 110096 deleted from reserved.variables.files by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190876@lists.php.net to get a copy of this message
Note Submitter: senatori at sfsu d edu ---- Information about the uploaded file is stored in the $_FILES array like this: file is the name/literal of the upload field supplied by the form: $_FILES['file']['name'] The name of the uploaded file (e.g., smiley.jpg) $_FILES['file']['type'] The content type of the file (e.g., image/jpeg) $_FILES['file']['size'] The file’s size in bytes $_FILES['file']['tmp_name'] The name of the temporary file stored on the server $_FILES['file']['error'] The error code resulting from the file upload Common types: application/pdf application/zip audio/mpeg image/gif image/jpeg image/png multipart/form-data text/css text/html text/plain text/xml video/mpeg etc. p.s. whomever is an admin should probably add this into the main documentation.

« previous php.notes (#190876) next »