How To Get the Uploaded File Information in the Receiving Script?

Ads
 

How To Get the Uploaded File Information in the Receiving Script?

How To Get the Uploaded File Information in the Receiving Script?

View Answers

November 13, 2010 at 5:09 PM

Hi,

PHP script can get the uploaded file information through the predefined array called $FILES. Uploaded file information is organized in $FILES as a two-dimensional array as:

    $_FILES[$fieldName]['name'] - The Original file name on the browser system.
    $_FILES[$fieldName]['type'] - The file type determined by the browser.
    $_FILES[$fieldName]['size'] - The Number of bytes of the file content.
    $_FILES[$fieldName]['tmp_name'] - The temporary filename of the file in which the uploaded file was stored on the server.
    $_FILES[$fieldName]['error'] - The error code associated with this file upload.

The $fieldName is the name used in the <INPUT TYPE=FILE, NAME=fieldName>.

Thanks

Ads









Related Tutorials/Questions & Answers:
How To Get the Uploaded File Information in the Receiving Script?
Uploaded File Information in the Receiving Script?
Advertisements
How to get full path of the uploaded file using commons fileupload jar file
How to change uploaded file root path ?
where to stroe this uploaded file
Uploaded File View Page
What is the maximum size of a file that can be uploaded using PHP and how can we change this?
how to get description for each file
display uploaded file option in editable form
display uploaded file option in editable form
How to get path of a file in iOS?
PHP function is_uploaded_file() and example
get information from database
how to download the uploaded folder files using jsp
PHP function uploaded_file() and example
How to get the browsed file path into controller bean using JSF icefaces
how to save uploaded image in database using javascript
How could we get log file as simple text format
PHP GD get gd information
Java file get name
get information about foreign keys - JDBC
What is a PHP File?
Java file get size
How to get xml file form http port using web service
Get information about foreign keys used in a table.
How to get the full path location using <input type=file>
PHP Get Browser Information
How to get of lastmodified file list between two times in java?
How to read excel contents when uploaded
java get file permission
JDOM Element Example, How to get text of element of xml file.

Ads