Uploading the image is the easy part.  Only a matter of using the <CFFILE 
ACTION="Upload"> technique (see the cf documentation or ask me again if you need 
specific help).  However, when is someone "done" viewing the image, when they close 
the browser?  When they click the "Done" button/link?

Some ideas are here:

1) If you don't expect them to click anything, you might want to try creating a script 
that deletes all the files in a given directory that are greater than 8 hours old 
every so often, this can be done with <CFSCHEDULE> and <CFFILE ACTION="delete">.

2) If they are going to click on something, you just simply respond with a delete file 
command over the file.

I dunno if this helps, could you make yourself more clear perhaps?

>>> [EMAIL PROTECTED] 07/25 1:57 PM >>>
Greetings all,

I am creating a small website in which users will be able to upload images 
to my server into a directory that is not under my document root (so they 
can't just browse the directory or guess at image names). I can figure out 
how to use cffile to copy the images into a directory under my doc root so 
they can view it but I want to be able to delete the temporary image once 
they are done viewing it. Does anyone have any ideas on how to do this cleanly?

Thanks in advance.
Greg Caron
Site Administrator
CyberCityUSA.com

------------------------------------------------------------------------------
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.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to