Re: Getting uploaded file name without CFFILE action=upload
You can use client side javascripting to make a hidden textfield. When user clicks submit, set the value of the hidden field to value contained by the filefield. I haven't tried that but I guess it should work... atleast theoretically :D Regards, Arsalan -- From: .jonah jonah@creori.com Sent: Sunday, July 18, 2010 7:10 AM To: cf-talk cf-talk@houseoffusion.com Subject: Getting uploaded file name without CFFILE action=upload I need to upload files and then immediately turn around and re-upload them to another site using CFHTTP ... I thought it might be nice to just use the file uploaded into the tmp directory but it of course doesn't have the original file name. #form.filefield# gives me the temp name of the newly uploaded file. #cffile. serverFile# gives me the name after I've run CFFILE action=upload ... Is it possible to get the clientFile name or serverFile name of the .tmp file without calling CFFILE action=upload ... ? Thanks, .jonah ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335451 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Connecting to CFC's in the same directory in CF9.
I think that I have isolated it pretty well now ... It can find the CFC if both the invoking web page and the CFC are in the document root (c:\inetpub\wwwroot\) and it can find it if I create a subdirectory from there, e.g., c:\inetpub\wwwroot\real\ and move them both to it. But if I create a virtual directory that points into my website pages and place both modules there then it fails. I went back to my old CF8 system and tested it the same way and satisfied myself that there is no such problem in CF8. So my conclusion is that CF9 is not able to find the CFC when it is in a virtual directory, even though the calling page is in the same virtual directory. I am using a new Windows 7 Professional system which means I am running IIS 7. So I figure that the issue is either a CF9 bug or something that needs to be changed in the IIS 7 setup. (But if I can access the web page, could anything else need to be done to access the CFC?) Any ideas? If I get nothing back I will post this to Adobe and see if they can provide help. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335452 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Is Rick Root OK? Has anyone contacted him lately?
I sent a question to Rick Root a week ago about his excellent CFFM and i haven't heard back from him.That's most unlike Rick - usually he's responding almost before I've finished the question. I'm getting a bit concerned. Is he ok? Has anyone had contact from him recently? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335453 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Connecting to CFC's in the same directory in CF9.
That is a limitation when it comes to Virtual Directories, it won't work like that. Regards, Andrew Scott -Original Message- From: John Pullam [mailto:jpul...@mcleansystems.com] Sent: Sunday, 18 July 2010 10:26 PM To: cf-talk Subject: Re: Connecting to CFC's in the same directory in CF9. I think that I have isolated it pretty well now ... It can find the CFC if both the invoking web page and the CFC are in the document root (c:\inetpub\wwwroot\) and it can find it if I create a subdirectory from there, e.g., c:\inetpub\wwwroot\real\ and move them both to it. But if I create a virtual directory that points into my website pages and place both modules there then it fails. I went back to my old CF8 system and tested it the same way and satisfied myself that there is no such problem in CF8. So my conclusion is that CF9 is not able to find the CFC when it is in a virtual directory, even though the calling page is in the same virtual directory. I am using a new Windows 7 Professional system which means I am running IIS 7. So I figure that the issue is either a CF9 bug or something that needs to be changed in the IIS 7 setup. (But if I can access the web page, could anything else need to be done to access the CFC?) Any ideas? If I get nothing back I will post this to Adobe and see if they can provide help. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335454 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Getting uploaded file name without CFFILE action=upload
I've considered that and it's a possibility. What I'm really looking for is how to access where CF is internally holding the filename between the time it is uploaded to the web server and the time you process it with cffile upload. I learned something interesting though: If you upload a file and then use cfhttp to upload the temp file to the same server, it throws a name conflict. Is it using an encrypted version of the original file name for the temporary file? It's not random, or timestamp based apparently! Thx, .jonah On 7/17/10 11:00 PM, Arsalan Tariq Keen wrote: You can use client side javascripting to make a hidden textfield. When user clicks submit, set the value of the hidden field to value contained by the filefield. I haven't tried that but I guess it should work... atleast theoretically :D Regards, Arsalan -- From: .jonahjonah@creori.com Sent: Sunday, July 18, 2010 7:10 AM To: cf-talkcf-talk@houseoffusion.com Subject: Getting uploaded file name withoutCFFILE action=upload I need to upload files and then immediately turn around and re-upload them to another site usingCFHTTP ... I thought it might be nice to just use the file uploaded into the tmp directory but it of course doesn't have the original file name. #form.filefield# gives me the temp name of the newly uploaded file. #cffile. serverFile# gives me the name after I've runCFFILE action=upload ... Is it possible to get the clientFile name or serverFile name of the .tmp file without callingCFFILE action=upload ... ? Thanks, .jonah ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335455 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Getting uploaded file name without CFFILE action=upload
Well, you could get it from the same source that ColdFusion is getting it, which is where the Web server got it. From the headers of the HTTP request sent by the browser to the web server. Explore the request headers and you should find it. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335456 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is Rick Root OK? Has anyone contacted him lately?
At this time of year the assumption would be that he is on vacation. This is especially true for someone who works for a university and likely gets an above-average amount of paid vacation time. -Mike Chabot On Sun, Jul 18, 2010 at 10:31 AM, Mike Kear afpwebwo...@gmail.com wrote: I sent a question to Rick Root a week ago about his excellent CFFM and i haven't heard back from him. That's most unlike Rick - usually he's responding almost before I've finished the question. I'm getting a bit concerned. Is he ok? Has anyone had contact from him recently? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335457 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is Rick Root OK? Has anyone contacted him lately?
Ah yes of course! Thanks Mike. It's mid winter here, so i had forgotten about that aspect. Thanks. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month On Mon, Jul 19, 2010 at 5:50 AM, Mike Chabot mcha...@gmail.com wrote: At this time of year the assumption would be that he is on vacation. This is especially true for someone who works for a university and likely gets an above-average amount of paid vacation time. -Mike Chabot ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335458 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Connecting to CFC's in the same directory in CF9.
That surprises me. Virtual directories work fine in CF8 and I have been using them like that on my development desktop for several years without a problem. Can you please provide me more information about your statement? Specifically: - what is the limitation? - is it an IIS issue or CF? - did it just happen on CF9? - is there any documentation that explains this limitation? If I can't use virtual directories, what is the approach that others use for testing on a desktop with multiple CF websites? Put all the data on the c: drive in wwwroot? (It seems more logical to me to use virtual directories and keep them with the rest of my files.) Thanx. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335459 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Connecting to CFC's in the same directory in CF9.
What ColdFusion mappings do you have set up on the CF8 and CF9 boxes? That could explain a difference in behavior. If I can't use virtual directories, what is the approach that others use for testing on a desktop with multiple CF websites? Install Apache, set up multiple sites, and use your host file to have a separate domain for each of them. For instance, www.example.com could be devww.example.com on your desktop. ~Brad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335460 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Problem with file path...
Ok, I've got a folder set up under my webroot named hphomes. I've got another folder under my webroot named real_estate_common. In IIS, I've created a virtual directory in the hphomes directory called real_estate_common. I thought that all paths created for any file inside the virtual directory would be created as though the virtual directory were actually inside the webroot, hphomes... However, this works: link type=text/css rel=stylesheet href=../css/hphGlobal.css But, this does not: cfinclude template = ../css/conditionalCSSChrome.cfm Are relative paths treated different for an include as opposed to a css link? CFINCLUDE or other CFML tags don't know anything about IIS or virtual directories. Virtual directories are only used to respond to HTTP requests from the client. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335461 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Getting uploaded file name without CFFILE action=upload
That sounds like a good idea. When CF receives a POST with encoding application/x-www-form-urlencoded, you can access the URL encoded form fields via getHttpRequestData().content HOWEVER when the POST is multipart/form-data to handle file uploads, getHttpRequestData().content is an empty binary value. Somewhere I read that this is done to save memory as that header value would be the encoded length of the file being uploaded. CF has to be keeping the field values elsewhere in this case. Can we access that? On 7/18/10 11:53 AM, Ian Skinner wrote: Well, you could get it from the same source that ColdFusion is getting it, which is where the Web server got it. From the headers of the HTTP request sent by the browser to the web server. Explore the request headers and you should find it. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335462 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Getting uploaded file name without CFFILE action=upload
I haven't tried that but I guess it should work... atleast theoretically I have done this before, so yeah, it is do-able. I use this sort of technique mostly to sniff out file extensions prior to upload. I have some code sitting around somewhere if you are interested. G! On Sun, Jul 18, 2010 at 2:00 AM, Arsalan Tariq Keen arsalk...@hotmail.comwrote: You can use client side javascripting to make a hidden textfield. When user clicks submit, set the value of the hidden field to value contained by the filefield. I haven't tried that but I guess it should work... atleast theoretically :D Regards, Arsalan -- From: .jonah jonah@creori.com Sent: Sunday, July 18, 2010 7:10 AM To: cf-talk cf-talk@houseoffusion.com Subject: Getting uploaded file name without CFFILE action=upload I need to upload files and then immediately turn around and re-upload them to another site using CFHTTP ... I thought it might be nice to just use the file uploaded into the tmp directory but it of course doesn't have the original file name. #form.filefield# gives me the temp name of the newly uploaded file. #cffile. serverFile# gives me the name after I've run CFFILE action=upload ... Is it possible to get the clientFile name or serverFile name of the .tmp file without calling CFFILE action=upload ... ? Thanks, .jonah ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335463 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm