note 56247 deleted from features.file-upload by betz
| From: | betz@php.net | Date: | Sat, 05 Nov 2005 09:50:14 +0000 |
| Subject: | note 56247 deleted from features.file-upload by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98118@lists.php.net to get a copy of this message | ||
Note Submitter: cumbiem at comcast dot net
----
The post
dev at kiwicore dot org
13-Oct-2004 12:58
Has an error in the no ext bit,
else {
while(file_exists($destDir.$file['name'].($i?'_copy_'.$i:''))){
++$i;
$file['name'] =
$file['name'].($i?'_copy_'.$i:'');
}
a simple fix should read,
else {
$file_prefix = $file['name'];
while(file_exists($destDir.$file_prefix.($i?'_copy_'.$i:''))){
++$i;
$file['name'] = $file_prefix.($i?'_copy_'.$i:'');
}