> One idea was to use cffile and cfcontent to force a download. Has
> anyone tried this? I can see it working for txt files but what about
> pdf and zip files?

Yes, this will work with most files. You won't be able to take advantage of
PDF byte-serving, though, if you care about that. You don't even need CFFILE
if you're using some sort of time-based authentication scheme within your
application.

> Idea two was to have CF make a folder name based on a UUID (universal
> unique ID) and have CF copy the file from a non shared drive to this
> folder. Then delete it a few mins later.

This will also work, but it's more trouble to implement. On the other hand,
if you're going to handle a lot of files, this will perform much better, as
it takes CF out of the loop when handling the actual file request.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to