note 129014 added to features.file-upload.multiple

From: Date: Tue, 07 Nov 2023 08:29:05 +0000
Subject: note 129014 added to features.file-upload.multiple
Groups: php.notes 
Request: Send a blank email to php-notes+get-220970@lists.php.net to get a copy of this message
Just combine temporary path with the filename which will result an array like: array(2) { ["/tmp/phpAYCvcc"]=> string(10) "file1.jpg" ["/tmp/phpCDg79o"]=> string(10) "file2.jpg" } The code: $files = array_combine( $_FILES['receipt']['tmp_name'], $_FILES['receipt']['name'] ); foreach ($files as $key => $value) { // save your files locally } ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.157.134 (proxied: 156.146.63.149) ---- Manual Page -- https://php.net/manual/en/features.file-upload.multiple.php Edit -- https://main.php.net/note/edit/129014 Del: integrated -- https://main.php.net/note/delete/129014/integrated Del: useless -- https://main.php.net/note/delete/129014/useless Del: bad code -- https://main.php.net/note/delete/129014/bad+code Del: spam -- https://main.php.net/note/delete/129014/spam Del: non-english -- https://main.php.net/note/delete/129014/non-english Del: in docs -- https://main.php.net/note/delete/129014/in+docs Del: other reasons-- https://main.php.net/note/delete/129014 Reject -- https://main.php.net/note/reject/129014 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220970) next »