HI!
Once again little problem
I have a gallery-page and customers can send their photos to the gallery also via normal email. Coldfusion use CFX_IMAP4 -tag to check specified mailbox every five minutes and it works good. BUT: Every customer have, of course, their own folder for pictures. No problem, I´ve programmed script which loops over every message, take all (picture)attachments and move them from attachments -folder to customer´s imagefolder. But very often customer use, for example, digital camera which use the same system to save images. So then customer can send images with a same name.
So: I need to check if there already is a image with a same name in the destination folder before I do the CFFILE ACTION="COPY" -script. If there is, then new file would be renamed to imagename(1) etc. before the copy.
I hope you understood my problem, this has been a hard day...
Once again little problem
I have a gallery-page and customers can send their photos to the gallery also via normal email. Coldfusion use CFX_IMAP4 -tag to check specified mailbox every five minutes and it works good. BUT: Every customer have, of course, their own folder for pictures. No problem, I´ve programmed script which loops over every message, take all (picture)attachments and move them from attachments -folder to customer´s imagefolder. But very often customer use, for example, digital camera which use the same system to save images. So then customer can send images with a same name.
So: I need to check if there already is a image with a same name in the destination folder before I do the CFFILE ACTION="COPY" -script. If there is, then new file would be renamed to imagename(1) etc. before the copy.
I hope you understood my problem, this has been a hard day...