ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 19th, 2004, 10:53 AM
cbebout cbebout is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 3 cbebout User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy CFFILE 'upload' doesn't work on secured server

Can't figure out why CFFILE 'upload' won't work on a secured eCommerce server. Basic code worked fine on other server, and works in dev. environment; but not on new, secured, production server... Output of action page (once submit the form), aborting before the CFFILE tag actually, since the CF engine won't parse past that tag...

****************************************
C:\WINNT\TEMP\ACF5487.tmp is the 'File Name' passed from form.
D:\website\internet\dpw\cons\spats\public\spatsfaq\forms\ is the 'Destination' for upload action.

Check: NO (File exists Yes, or no)


GetTempDirectory Example
The temporary directory for this ColdFusion server is C:\WINNT\TEMP\

Created a temporary file called: C:\WINNT\TEMP\tes5488.tmp
**********************

We've tried everything!! Changing 'temp' directory, modifying permissions, changing account CF Service runs under... everything. Ideas?

Thanks

Reply With Quote
  #2  
Old October 19th, 2004, 11:05 AM
bocmaxima's Avatar
bocmaxima bocmaxima is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2004
Location: Tucson, Sonora
Posts: 1,322 bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 17 h 46 m 5 sec
Reputation Power: 23
Send a message via AIM to bocmaxima
Does it give an error message or does it just not upload?
Also, have you tried uploading to this directory while NOT on a secure connection?

Reply With Quote
  #3  
Old October 19th, 2004, 11:25 AM
cbebout cbebout is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 3 cbebout User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Respond to boxmaxima response/questions

Quote:
Originally Posted by bocmaxima
Does it give an error message or does it just not upload?
Also, have you tried uploading to this directory while NOT on a secure connection?


Yes, gives an error message:

"Error in CFFILE tag The form field specified in the CFFILE tag (WHATFILE) does not contain an uploaded file. Please be sure that you have specified the correct form field name.<p>The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (14:1) to (14:103)."

Not exactly sure what you mean by 'secure connection'. We're not in 'https' mode at the point where the upload is taking place; it's just that the production server we're running on has all kinds of special security on it, separate VLAN, restricted ACLs on routers, etc. etc.

Yes, the code worked fine before we implemented some online payment functionality on the web app of which this feature is a part, and consequently moved the app to a 'secure' server.

Thanks - appreciate your response; and any further ideas you have!

Reply With Quote
  #4  
Old October 19th, 2004, 12:27 PM
bfolger71 bfolger71 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Boston, MA
Posts: 47 bfolger71 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 34 sec
Reputation Power: 6
Hi - haven't seen the code, but the error doesn't appear to have anything to do with a "secured" server (ie, file I/O permission problems). It looks like the <cffile> tag isn't getting what it needs (a file). Have you confirmed that your submitting <form> has the proper enctype:

<form name="foo" method="post" action="bar.cfm" enctype="multipart/form-data">

And that the field names match up between your submitting and processing pages?

If those don't take care of the issue, try posting the submitting and the processing code here so we can take a look at it.

Reply With Quote
  #5  
Old October 19th, 2004, 01:05 PM
cbebout cbebout is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 3 cbebout User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Reply to bfolger71

Quote:
Originally Posted by bfolger71
Hi - haven't seen the code, but the error doesn't appear to have anything to do with a "secured" server (ie, file I/O permission problems). It looks like the <cffile> tag isn't getting what it needs (a file). Have you confirmed that your submitting <form> has the proper enctype:

<form name="foo" method="post" action="bar.cfm" enctype="multipart/form-data">

And that the field names match up between your submitting and processing pages?

If those don't take care of the issue, try posting the submitting and the processing code here so we can take a look at it.


Sure; here's the code:

Form page:

<FORM action="permitforms_add3.cfm?Action=Add" method="post" enctype="multipart/form-data">

<input type="file" name="WhatFile">
<INPUT type="submit" value="Submit">

Action page:

<CFLOCK scope="APPLICATION" type="READONLY" timeout="10">
<cfset serverdirectory="#Application.ROOTPATH#public\spatsfaq\forms\">
</CFLOCK>

<cffile destination="#ServerDirectory#" action="upload" nameconflict="makeunique" filefield="WhatFile">
</cfoutput>

Thanks

Reply With Quote
  #6  
Old December 13th, 2004, 05:23 PM
bemaster bemaster is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 bemaster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cool

Sorry, misunderstood the question...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > CFFILE 'upload' doesn't work on secured server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT