> In a web-based message center that includes the ability to
> attach files - I'm trying to ensure the consistency of the
> filenames that were sent, in otherwords - I want it to be
> the same filename that appears in the recipients mailbox.
> This sometimes does not happen because the files are uploaded
> into an attachments directory and there is room for name
> conflicts. I am planning on running a scheduled task to flush
> that directory out every night, but if two people try attaching
> a file with the same name in that 24 hour timespan, there is
> going to be a change in the filename - does anybody suggest
> a solution to this annoyance? Thanks, Adam.
There are two ideas I've used in the past to deal with filename uniqueness
issues.
One is to name the file itself using an arbitrary name, but store the "real"
name in the database, and use that real name when pushing the file to
somewhere else. That works well using CFCONTENT, of course.
The other is to store files uploaded by one person in a unique subdirectory
within the larger directory.
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.