The Coldfusion Open Source Forums
Home | ImageCFC | CFFM | BlogCFM | CFMBB | CFOpenMail / ImapCFC | CFOpenChat
Forums | Profile | Inbox | Members | Chat | Search | Login | RSS
Vivio Technologies Dedicated Hosting
New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page

Forums: CFFM: Directory help
Created on: 11/05/09 {ts '2013-05-23 10:21:00'} Views: 1115 Replies: 1
Directory help
Posted Thursday, November 5, 2009 at {ts '2013-05-23 10:21:00'}

I am sure this is easy, but I can not seem to make it work. I would like the cffm uploads to default to the directory above where cffm.cfm is located. I have removed the /custom from the include directory paths, but can not figure out how to get it to move up one directory. ../ does not seem to work. can anyone help with this. This is what was causing my http error issue mentioned previously.

RE: Directory help
Posted Thursday, November 5, 2009 at {ts '2013-05-23 14:12:00'}

Well, there are two paths you need to set

includeDirWeb
includeDir

So, if cffm lives in a certain location, like /admin/cffm.cfm ... and you want cffm's file uploads to go into the web site's root folder, you'd set the values of those arguments to:

includeDirWeb = "/"

includeDir = #expandPath("..")#

Rick Root
I'm not certified, but I have been told that I'm certifiable!

www

New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page
Subscription Options
Subscription options are available after you log in.

There are 4 active user sessions right now.