hi there,
I got a question for real proffies :
I have a form with 2 file fields, let's say its :
<form enctype"..." method=post action=$php_self>
<input type=file name="thumb-image">
<input type=file name="full-image">
<input type=submit>
</form>
image can be either gif or jpg i believe these are the most popular image types 😉
so if user selects let's say
me.gif
and attempting to upload the file to the server in to the directory:
c:\site\images\
but the file with the same name (me.gif)already exists ?
what i mean is how to validate that there is no files with the same file name in the folder and if there is then create unique name for the file so it won't overwrite existing one ?
what the easiest way to do that and could you give me a code example ...
its for the e-com admin module - add product part...
any help greatly appreciated and absolutely any help will save my life ....
Thanks a lot
Alexei Smirnov