Doug Brown wrote:
> Ok, thanks Rick. Another question after RTFM I am using the FCK default
> upload and have the images going into webroot/mySite/userFiles/images. Once
> the user uploads to this directory, how can I associate it with the
> information in the database? What I need to do is be able to delete the
> images when and if the ad gets deleted (Classifieds app).

Also, keep in mind that users may upload the same image for multiple 
ads... or they may use the same name for multiple images... make sure 
your code handles that, possibly by modifying the CFFILE upload piece in 
upload.cfm to force unique filenames rather than overwrite.

Or maybe you've got a session var with an AD ID in it, you could just 
put the images into a subfolder named after the ad id.

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262770
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to