note 78162 deleted from features.file-upload.multiple by nlopess

From: Date: Fri, 05 Oct 2007 11:56:26 +0000
Subject: note 78162 deleted from features.file-upload.multiple by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-131131@lists.php.net to get a copy of this message
Note Submitter: heukirne at pop dot com dot br ---- 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

« previous php.notes (#131131) next »