Maybe this is too complicated, but I would keep the original file names,
and put it in a directory named '149284.'  

 Although, if you don't want to try that approach you may want to link
to another CFM page that renames the file and then links to it, either 
using javascript or a cflocation.  


Norman Elton wrote:
> 
> Hello-
> 
> I know this is slightly off topic, but it is related to HTML, so here it
> goes:
> 
> I keep an archive of files. A user uploads a file ("MyFile.doc") and it gets
> dumped into a directory for storage. It gets renamed to a unique name
> ("149284.doc") for storage, and the original filename is stored in the
> database.
> 
> Now the user wants to download the file. I can make a link to the file, but
> it would be downloaded with the numeric name. Is there any way to somehow
> "dynamically" rename the file so that the user doesn't have to rename it
> manually?
> 
> Thanks!
> 
> Norman
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at 
>http://www.fusionauthority.com/bkinfo.cfm
> 
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

-- 
Jeff Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711  | ICQ: 5246969 | Phone: 860-229-2781
--
Instant Cold Fusion 4.5  | ISBN: 0-07-213238-8   
Due out 3rd Quarter 2001
--
DotComIt, LLC
Computer Consultant specializing in database driven web data
ColdFusion, Lotus Notes/Domino
--
Half of the Alternative Folk Acoustic Duo called Far Cry Fly 
http://www.farcryfly.com
http://www.mp3.com/FarCryFly
--
Does Everyone Think I'm a Cynical?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to