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"); + } +} +?> +]]> + +