From 1b76ab3a6ab1d74f1f47d3951c23530558ab5786 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 7 Mar 2005 10:34:32 +0000 Subject: [PATCH] Uploading array of files (bug #32212) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@181521 c90b9560-bf6c-de11-be94-00142212c4b1 --- features/file-upload.xml | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/features/file-upload.xml b/features/file-upload.xml index 6a495b1eb7..aa5ab00e7d 100644 --- a/features/file-upload.xml +++ b/features/file-upload.xml @@ -1,5 +1,5 @@ - + Handling file uploads @@ -212,6 +212,38 @@ print ""; The file will be deleted from the temporary directory at the end of the request if it has not been moved away or renamed. + + Uploading array of files + + PHP supports HTML array feature + even with files. + + + +

Pictures: + + + + +

+ +]]> +
+ + $error) { + if ($error == UPLOAD_ERR_OK) { + $tmp_name = $_FILES["pictures"]["tmp_name"][$key]; + $name = $_FILES["pictures"]["name"][$key]; + move_uploaded_file($tmp_name, "data/$name"); + } +} +?> +]]> + +