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

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









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
ModuleNotFoundError: No module named 'scriptd'
ModuleNotFoundError: No module named 'scripty'
display uploaded file option in editable form
display uploaded file option in editable form
What is the maximum size of a file that can be uploaded using PHP and how can we change this?
PHP function is_uploaded_file() and example
PHP function uploaded_file() and example
how to download the uploaded folder files using jsp
get information from database
how to get description for each file
how to get file extension in java
How to get path of a file in iOS?
how to save uploaded image in database using javascript
get information about foreign keys - JDBC
PHP Get Browser Information
Get information about foreign keys used in a table.
What is a PHP File?
PHP GD get gd information
How to read excel contents when uploaded
Sending and receiving information to the UDP Client in Java
Struts File Upload and Save
How to get the browsed file path into controller bean using JSF icefaces
How could we get log file as simple text format
How to get the full path location using <input type=file>
How to get xml file form http port using web service
How to get of lastmodified file list between two times in java?
JDOM Element Example, How to get text of element of xml file.
Java file get name
Java file get size
JDOM Element example, How to get root element of xml file.
java get file permission
Retrieving list of uploaded files.
Java get File Type
how to access windows registry information using java?
Conflict with jQuery scripts
how to get the image path when inserting the image into pdf file in jsp - JSP-Servlet
Help me to view uploaded on browser window
Struts 2 File Upload
Java file get parent directory
Java Get File Name
plese send information how to do this - Development process
how to get a column values from a excel file after attaching it - JSP-Servlet
pre view of image uploaded
pre view of image uploaded

Ads