Not sure it's helpful but I just dealt with a similar situation. I really
wanted some consistency in naming rather than having some renamed and others
not. Not to mention having to strip bogus characters out to ensure
cross-browser downloading issues weren't encountered. Here's where I'm at
for now...

When a file gets added I generate a GUID and use that as the file name on
disk. I store both the original file name and the GUID in the database. When
someone downloads the file I insert the original file name in the Save As
dialog rather than the GUID so they have something (hopefully) recognizable
to work with. Those "AC3542.whatever" filenames coming out of the Dev center
always annoyed me.

Just one approach...

Ken




-----Original Message-----
From: Robert Everland [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 10:12 AM
To: CF-Talk
Subject: How does tag gallery make thier filenames


        I am working on a content management system and don't want to have
to worry about wierd characters, spaces, or anything but the unique id
number is pretty big, how does allaire make thier file names have those cool
file names. I know the makeunique will change them if there is already a
file there, but it seems as though when you upload now, even with a crazy
file name it automatically renames them to something like AC3542.whatever.
Any help?

Robert Everland III
Dixon Ticonderoga

______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to