[eluser]Nextneed[/eluser]
Hi, if i upload the same file more than 100 times codeigniter fail to rename it and raise an error.
The problem is in this loop
Code:
$new_filename = '';
for ($i = 1; $i < 100; $i++)
{
if ( ! file_exists($path.$filename.$i.$this->file_ext))
{
$new_filename = $filename.$i.$this->file_ext;
break;
}
}
in the upload library...
It could seem a silly problem but if you give to the end user some template files to upload you could have some problems...
bye
Luca