> The file is being saved on the server with the ORIGINAL 
> filename..not a different name.
> 
> So, from my understanding of how this works comes a different
> question....what if two different users on the site happen to 
> hit the "SUBMIT" button on the form at the same time? Is it 
> possible for the attachments to get confused as to which email 
> they're supposed to be with? What if the remote possibility of 
> two users at the same time with the same file name? What the 
> heck happens then? If this is a possibility, what's the
> best way to prevent this before it CAN happen?

Yes, it's certainly possible that there may be problems if people upload
files with the same name at the same time. The first person may email the
second person's file, for example, or the second person's operation might
fail because of a locked file.

To avoid this, you could set the NAMECONFLICT attribute to "unique" instead
of "overwrite", then attach the uniquely named file (referencing
File.ServerFile to get that name). Alternatively, you could have your script
create a uniquely-named directory for each user, and upload the file or
files into that directory, then delete the directory and its contents when
you're done.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to