> I'm sure I'm missing something really easy . . . if I take an 
> uploaded file from the customer and put it into a directory 
> outside the web server root, how do I give the customer access 
> to that file in the future? The idea behind this app is sharing 
> of files.  

You'd use the CFCONTENT tag to retrieve the file from the directory and
return it to the browser. You'd store information about the file (such as
the file name) in your database, and you'd use that information to retrieve
the file as desired.

> Do I <cfcontent> it with the mime type based on the file extension?  
> Or, thinking hard now, someone mentioned an application/unknown mime 
> type? Would that be my answer?

This depends on what you want to have happen. If you want all files, when
selected, to prompt the user to save them to disk, you'd use the
application/unknown MIME type. If, on the other hand, you want the browser
to decide what the appropriate action is, you'd use the MIME type
appropriate to each file.

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