jueves, 19 de marzo de 2015

$_FILES[] array elements

$_FILES[] elements
Added By: Jim E.
IRC S/N: bawls
Last Revised: July 9, 2002

Description:
        Here are the elements that are passed in the $_FILES array after a file has been uploaded.
Script:

Assume the file field name was "file1"

$_FILES['file1']['tmp_name'] <== returns the name of the temporary file
$_FILES['file1']['name'] <== returns the name of the uploaded file
$_FILES['file1']['size'] <== returns the file size of the uploaded file (bytes)
$_FILES['file1']['type'] <== returns the mime type of the uploaded file

http://www.glodev.com/script_view.php?ScriptID=51

No hay comentarios:

Publicar un comentario