RE: [KCFusion] CFFile to Upload
Don: I've seen several code snippets to retrieve a path, including one I wrote. But I'm not sure I exactly understand what you're trying to do. Maybe we could just send you something and you can try it out? Mine uses several CF functions, part of an experiment I was doing to create a navigation bar that would know where it was. Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 880-0243 x214 Fax: (816) 880-4776 (800) 525-1101 http://www.vmdc.net/ CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Don Buck Sent: Friday, August 17, 2001 8:09 AM To: CF-List Subject: [KCFusion] CFFile to Upload I am using CFFile to upload files to my server: cfif isdefined(form.submitted) CFFILE ACTION=upload FILEFIELD=uploadfile DESTINATION=C:\Inetpub\wwwroot\Test\images ACCEPT=image/gif, image/jpg NAMECONFLICT=Overwrite /cfif My problem is that I want to be able to move this file where I want at a later date, without having to worry about changing the explicit path in the Destination. Is there a function that I can call to retreive the path of the calling file? Something like: cfset myDestination = #CFFilePath#\images which would create: myDestination=C:\Inetpub\wwwroot\Test\images This seems like a function that should be there, but I can't find it. Any Help? Don Buck (816) 761-5430 Chief Information Officer ShareValue Inc. http://www.sharevalue.com __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED] __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
RE: [KCFusion] CFFile and CFFTP
It has been my experience that CFFTP in CF 4.5.x doesn't work. I had to go to a 3rd party COM Object to get the job done. You can download the free com Object here: http://serverobjects.com/products.htm Get "AspInet" Component at the bottom of the page. Here is the code you use to access it: CFSET BINARY = 2CFSET ASCII = 1CFSET FTP_TRANSFER_TYPE = ASCII !---Send File Example --- CFOBJECT TYPE="COM" NAME="FtpConn" CLASS="AspInet.FTP" ACTION="CREATE"CFSET RETURN = FtpConn.FTPPutFile("#REMOTESERVER#", "#USERNAME#", "#PASSWORD#", "#REMOTEFILE#", "#LOCALFILE#", "#FTP_TRANSFER_TYPE#")CFIF trim(RETURN) eq "YES" File Uploaded successfully..br/CFIF !--- Get File Example ---CFOBJECT TYPE="COM" NAME="FtpConn" CLASS="AspInet.FTP" ACTION="CREATE"CFSET RETURN = FtpConn.FTPGetFile("#REMOTESERVER#", "#USERNAME#", "#PASSWORD#", "#REMOTEFILE#", "#LOCALFILE#", "TRUE", "#FTP_TRANSFER_TYPE#") CFIF trim(RETURN) eq "YES" File Downloaded successfully..br/CFIF Good Luck, Justin Hansen - [EMAIL PROTECTED]Project Leader / Web Application DeveloperInteractive Business Solutions, Inc816-221-5200 ext. 1305 -Original Message-From: cfhelp [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 16, 2001 10:09 PMTo: KCFusionSubject: [KCFusion] CFFile and CFFTP I need to upload an image to a remote server. I do not know the directory path for the CFFile tag. I need to check that the image is gif or jpg. Then I need to tell if it is gif or jpg in order to name it on the server. I can't get anywhere with this. cfftp connection="ftoconection" action="OPEN" server="209.15.111.86" username="theusername" password="thepassword" cfftp connection="ftoconection" action="CHANGEDIR" directory="FTP" cfftp connection="ftoconection" action="CHANGEDIR" directory="NewBooks" cfftp connection="ftoconection" action="CREATEDIR" directory="#TheNewDirectory#" cfftp connection="ftoconection" action="CHANGEDIR" directory="#TheNewDirectory#" cfftp connection="ftoconection" localfile="#Pic#" remotefile="#Pic#" action="PutFile" I need to tell what kind of image file it is to name the remotefile This will upload the file but it has a tmp ext. Rick Eidson
Re: [KCFusion] CFFile to Upload
I believe you're looking for this: expandPath(../images/) Daryl - Original Message - From: Don Buck [EMAIL PROTECTED] To: CF-List [EMAIL PROTECTED] Sent: Friday, August 17, 2001 8:09 AM Subject: [KCFusion] CFFile to Upload I am using CFFile to upload files to my server: cfif isdefined(form.submitted) CFFILE ACTION=upload FILEFIELD=uploadfile DESTINATION=C:\Inetpub\wwwroot\Test\images ACCEPT=image/gif, image/jpg NAMECONFLICT=Overwrite /cfif My problem is that I want to be able to move this file where I want at a later date, without having to worry about changing the explicit path in the Destination. Is there a function that I can call to retreive the path of the calling file? Something like: cfset myDestination = #CFFilePath#\images which would create: myDestination=C:\Inetpub\wwwroot\Test\images This seems like a function that should be there, but I can't find it. Any Help? Don Buck (816) 761-5430 Chief Information Officer ShareValue Inc. http://www.sharevalue.com __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED] __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
RE: [KCFusion] CFFile to Upload
That works. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daryl Banttari Sent: Friday, August 17, 2001 8:44 AM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] CFFile to Upload I believe you're looking for this: expandPath(../images/) Daryl - Original Message - From: Don Buck [EMAIL PROTECTED] To: CF-List [EMAIL PROTECTED] Sent: Friday, August 17, 2001 8:09 AM Subject: [KCFusion] CFFile to Upload I am using CFFile to upload files to my server: cfif isdefined(form.submitted) CFFILE ACTION=upload FILEFIELD=uploadfile DESTINATION=C:\Inetpub\wwwroot\Test\images ACCEPT=image/gif, image/jpg NAMECONFLICT=Overwrite /cfif My problem is that I want to be able to move this file where I want at a later date, without having to worry about changing the explicit path in the Destination. Is there a function that I can call to retreive the path of the calling file? Something like: cfset myDestination = #CFFilePath#\images which would create: myDestination=C:\Inetpub\wwwroot\Test\images This seems like a function that should be there, but I can't find it. Any Help? Don Buck (816) 761-5430 Chief Information Officer ShareValue Inc. http://www.sharevalue.com __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED] __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED] __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
RE: [KCFusion] CFFile and CFFTP
Don't I need administrative access to install a com object? The site is hosted at another company I do not have control over the server. Rick -Original Message- From: Justin Hansen [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 7:35 AM To: '[EMAIL PROTECTED]' Subject: RE: [KCFusion] CFFile and CFFTP It has been my experience that CFFTP in CF 4.5.x doesn't work. I had to go to a 3rd party COM Object to get the job done. You can download the free com Object here: http://serverobjects.com/products.htm Get AspInet Component at the bottom of the page. Here is the code you use to access it: CFSET BINARY = 2 CFSET ASCII = 1 CFSET FTP_TRANSFER_TYPE = ASCII !---Send File Example --- CFOBJECT TYPE=COM NAME=FtpConn CLASS=AspInet.FTP ACTION=CREATE CFSET RETURN = FtpConn.FTPPutFile(#REMOTESERVER#, #USERNAME#, #PASSWORD#, #REMOTEFILE#, #LOCALFILE#, #FTP_TRANSFER_TYPE#) CFIF trim(RETURN) eq YES File Uploaded successfully..br /CFIF !--- Get File Example --- CFOBJECT TYPE=COM NAME=FtpConn CLASS=AspInet.FTP ACTION=CREATE CFSET RETURN = FtpConn.FTPGetFile(#REMOTESERVER#, #USERNAME#, #PASSWORD#, #REMOTEFILE#, #LOCALFILE#, TRUE, #FTP_TRANSFER_TYPE#) CFIF trim(RETURN) eq YES File Downloaded successfully..br /CFIF Good Luck, Justin Hansen - [EMAIL PROTECTED] Project Leader / Web Application Developer Interactive Business Solutions, Inc 816-221-5200 ext. 1305 -Original Message- From: cfhelp [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 10:09 PM To: KCFusion Subject: [KCFusion] CFFile and CFFTP I need to upload an image to a remote server. I do not know the directory path for the CFFile tag. I need to check that the image is gif or jpg. Then I need to tell if it is gif or jpg in order to name it on the server. I can't get anywhere with this. cfftp connection=ftoconection action=OPEN server=209.15.111.86 username=theusername password=thepassword cfftp connection=ftoconection action=CHANGEDIR directory=FTP cfftp connection=ftoconection action=CHANGEDIR directory=NewBooks cfftp connection=ftoconection action=CREATEDIR directory=#TheNewDirectory# cfftp connection=ftoconection action=CHANGEDIR directory=#TheNewDirectory# cfftp connection=ftoconection localfile=#Pic# remotefile=#Pic# action=PutFile I need to tell what kind of image file it is to name the remotefile This will upload the file but it has a tmp ext. Rick Eidson
[KCFusion] variable scoping
Does anybody know where I can find information regarding the different types of variable scoping? I've heard talk about #request.var#, #server.var#, etc. and I am having difficulty finding any documentation that covers this. Kory Bakken Accenture / Kansas City __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
RE: [KCFusion] CFFile to Upload
That seems to be a help to my problem also. Now the file does not have a tmp ext. Rick -Original Message- From: Don Buck [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 8:00 AM To: [EMAIL PROTECTED] Subject: RE: [KCFusion] CFFile to Upload That works. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daryl Banttari Sent: Friday, August 17, 2001 8:44 AM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] CFFile to Upload I believe you're looking for this: expandPath(../images/) Daryl - Original Message - From: Don Buck [EMAIL PROTECTED] To: CF-List [EMAIL PROTECTED] Sent: Friday, August 17, 2001 8:09 AM Subject: [KCFusion] CFFile to Upload I am using CFFile to upload files to my server: cfif isdefined(form.submitted) CFFILE ACTION=upload FILEFIELD=uploadfile DESTINATION=C:\Inetpub\wwwroot\Test\images ACCEPT=image/gif, image/jpg NAMECONFLICT=Overwrite /cfif My problem is that I want to be able to move this file where I want at a later date, without having to worry about changing the explicit path in the Destination. Is there a function that I can call to retreive the path of the calling file? Something like: cfset myDestination = #CFFilePath#\images which would create: myDestination=C:\Inetpub\wwwroot\Test\images This seems like a function that should be there, but I can't find it. Any Help? Don Buck (816) 761-5430 Chief Information Officer ShareValue Inc. http://www.sharevalue.com __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED] __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED] __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED] __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
RE: [KCFusion] variable scoping
I've found the most on this in the on-line docs ... http://www.multnomah.lib.or.us/cfdocs/Developing_Web_Applications_with_ColdF usion/04_Creating_and_Manipulating_Variables/dwa04_03.htm Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 880-0243 x214 Fax: (816) 880-4776 (800) 525-1101 http://www.vmdc.net/ CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bakken, Kory Sent: Friday, August 17, 2001 9:09 AM To: '[EMAIL PROTECTED]' Subject: [KCFusion] variable scoping Does anybody know where I can find information regarding the different types of variable scoping? I've heard talk about #request.var#, #server.var#, etc. and I am having difficulty finding any documentation that covers this. Kory Bakken Accenture / Kansas City __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
Re: [KCFusion] variable scoping
Check out my little site: http://www.cfprimer.com/ Daryl - Original Message - From: Bakken, Kory [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 9:08 AM Subject: [KCFusion] variable scoping Does anybody know where I can find information regarding the different types of variable scoping? I've heard talk about #request.var#, #server.var#, etc. and I am having difficulty finding any documentation that covers this. Kory Bakken Accenture / Kansas City __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED] __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
[KCFusion] Workaround for CFHTTP problems
I found an alternate solution for my problems with CFHTTP under CF5 (NT4, SP6a). I was getting error messages about proxy authorization and then suddenly, different messages about being unable to determine the mime type. (None of the proxy errors showed up in the proxy server logs. Hmmm.) I tracked down an old custom tag named CFX_HTTP. The author told me he hasn't written CF in at least a year since he went to work for a PHP shop, and he only tested the tag under CF 4.0. But he let me have it for free and it works just fine! I've asked if I could give it to anyone who asks. No reply yet. Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] http://www.vmdc.net/ CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
RE: [KCFusion] Macromedia Consulting is No More
Daryl: As far as ColdFusion, I get the impression this town has ASP tunnel vision. However the rest of your skills might find a home at one of the small number of Internet-related shops here. You'd be a big fish in a small pond. If you want to work for Sprint again, they've built a huge new campus (headquarters) in south Overland Park. Most salaries here are lower than the coasts, but cost of living is also proportionally smaller. Personally I think KC is great and don't want to live anywhere else. Good luck! Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] http://www.vmdc.net/ CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daryl Banttari Sent: Thursday, August 16, 2001 5:24 PM To: KCFusion Subject: [KCFusion] Macromedia Consulting is No More Hi everyone-- Macromedia Consulting is being dissolved, and most of the people who remain in that org unit are being moved to Premier Support. Or rather, the org unit formerly known as Premier Support. Not everyone can make this transition-- some will be laid off. They are asking us for volunteers. Frankly, I'm horribly torn, vacillating rapidly from stay to go. With the layoffs that have already occurred, I've made it a point to /not/ look around at the job market, because I had committed to Grant Szabo (Dir/Consulting) that I would stay for the duration. However, the duration of my current job (whether or not I stay at Macromedia) has found its limit. My choices are: Stay on as a tech support person, or leave for other pastures. I want to make an informed decision, so my question is: how green are those pastures in Kansas City? If you're interested, my resume can still be found at http://www.windsorcs.com/resume.htm Thanks, Daryl Banttari Sr. Consultant [for now] Macromedia Consulting [while it lasts] __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
Re: [KCFusion] Macromedia Consulting is No More
Thanks for the support, everyone. After extensive discussion and soul searching, I've decided to remain at MM. I'm a big fan of CF (no pun intended), and I think I can do more for the community from within MM than from without. In any case, I should be able to speak at more meetings now. :-) Thanks again, Daryl - Original Message - From: Keith Purtell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 12:54 PM Subject: RE: [KCFusion] Macromedia Consulting is No More Daryl: As far as ColdFusion, I get the impression this town has ASP tunnel vision. However the rest of your skills might find a home at one of the small number of Internet-related shops here. You'd be a big fish in a small pond. If you want to work for Sprint again, they've built a huge new campus (headquarters) in south Overland Park. Most salaries here are lower than the coasts, but cost of living is also proportionally smaller. Personally I think KC is great and don't want to live anywhere else. Good luck! Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] http://www.vmdc.net/ CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daryl Banttari Sent: Thursday, August 16, 2001 5:24 PM To: KCFusion Subject: [KCFusion] Macromedia Consulting is No More Hi everyone-- Macromedia Consulting is being dissolved, and most of the people who remain in that org unit are being moved to Premier Support. Or rather, the org unit formerly known as Premier Support. Not everyone can make this transition-- some will be laid off. They are asking us for volunteers. Frankly, I'm horribly torn, vacillating rapidly from stay to go. With the layoffs that have already occurred, I've made it a point to /not/ look around at the job market, because I had committed to Grant Szabo (Dir/Consulting) that I would stay for the duration. However, the duration of my current job (whether or not I stay at Macromedia) has found its limit. My choices are: Stay on as a tech support person, or leave for other pastures. I want to make an informed decision, so my question is: how green are those pastures in Kansas City? If you're interested, my resume can still be found at http://www.windsorcs.com/resume.htm Thanks, Daryl Banttari Sr. Consultant [for now] Macromedia Consulting [while it lasts] __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED] __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]