I am attempting to modify a flash form that I downloaded off of ASFusion.
Currently, my upload file (uploadimage.cfm) is in a folder called
"upload-image" which is one level off the root. I want to be able to upload
the images to a folder called "images" within the upload-image folder.
Visually, it looks like this:
root (dir)
upload (dir)
uploadimage.cfm
images (dir)
Currently, the "expandpath" drops the images in the same folder as the form
file (uploadimage.cfm). How would I modify the following to place the uploaded
files in the "images" folder? Also, I have not had any experience thus far
(being pretty new to CF) with "expandpath"--if someone could make a short note
of explanation, I would appreciate that also!
<cffile action="UPLOAD" filefield="Filedata"
destination="#expandpath(".")#\#url.id#" nameconflict="OVERWRITE">
Thanks!
Joel
</cfif>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2.
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273829
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4