note 68177 deleted from function.move-uploaded-file by betz

From: Date: Sun, 10 Sep 2006 10:13:33 +0000
Subject: note 68177 deleted from function.move-uploaded-file by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116980@lists.php.net to get a copy of this message
Note Submitter: theprocrastinater at hotmail dot com ---- An alternative way I have used to ensure unique filenames during uploads is to assign each user a value, a username if that is applicable, or just a random number. Create the filename using a user's specfic value and also a timestamp, as logically a single user cannot be submitting more than 1 file at a time. This may seem a little unnecceassry however, if you are expecting a large upload quantity of files it will improve the processing time for each upload, imagine cycling through the loop written below for 100 or even 1000 files and checking each file exists.

« previous php.notes (#116980) next »