note 78162 added to features.file-upload.multiple
| From: | heukirne at pop dot com dot br | Date: | Mon, 01 Oct 2007 16:22:59 +0000 |
| Subject: | note 78162 added to features.file-upload.multiple | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130960@lists.php.net to get a copy of this message | ||
Fixing the $_FILES superglobal
function fix_files_superglobal()
{
$flat_files = array_to_paths($_FILES);
$fixed_files = preg_replace('#^(/[^/]+)
(/name|/type|/tmp_name|/error|/size)([^s]*)
( = [^n]*)#m', '\1\3\2\4', $flat_files);
$_FILES = paths_to_array($fixed_files);
}
author: Shaun Inman
Original post: http://www.shauninman.com/archive/
/2006/11/30/fixing_the_files_superglobal
Tags: fixing, handle, array, files, upload, multifiles
----
Server IP: 69.147.83.197
Probable Submitter: 201.21.200.108
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.multiple.php
Edit -- https://master.php.net/note/edit/78162
Del: integrated -- https://master.php.net/note/delete/78162/integrated
Del: useless -- https://master.php.net/note/delete/78162/useless
Del: bad code -- https://master.php.net/note/delete/78162/bad+code
Del: spam -- https://master.php.net/note/delete/78162/spam
Del: non-english -- https://master.php.net/note/delete/78162/non-english
Del: in docs -- https://master.php.net/note/delete/78162/in+docs
Del: other reasons-- https://master.php.net/note/delete/78162
Reject -- https://master.php.net/note/reject/78162
Search -- https://master.php.net/manage/user-notes.php