Tabo
05-16-2007, 05:54 PM
Hey, i have a page where users upload images, everything fine. However if a file with the same name is uploaded i just
echo 'An image with that name already exists, please change the name and upload it again';
However i would prefer it if the name appends, for example if FILE.gif exists it renames the image that is being uploaded to FILE1.gif and so on.
Thanks.
echo 'An image with that name already exists, please change the name and upload it again';
However i would prefer it if the name appends, for example if FILE.gif exists it renames the image that is being uploaded to FILE1.gif and so on.
Thanks.