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 September 21st, 2005, 01:58 PM
anshushah anshushah is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 1 anshushah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 48 sec
Reputation Power: 0
Question CFFile Tag Upload errors out

Hi,

I am new at Coldfusion.Please excuse me if the question sounds stupid. I am trying to upload a file on the server and i get the following error. Upload works when i tried to do the same in Development on my local machine using Destination : C:/Apachegroup/apache/htdocs/xyz/file/


Error processing CFFILE

The directory specified in the DESTINATION attribute of the CFFILE tag (//IPADDRESSof Server/ora/file/ ) is not valid. The directory either does not exist or is not accessible by the ColdFusion service.

The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (79:2) to (82:21) in the template file C:\website\michigan\member\admin\Upload_detail_form.cfm

The specific sequence of files included or processed is:
C:\WEBSITE\MICHIGAN\MEMBER\ADMIN\UPLOAD_DETAIL_FORM.CFM .


Date/Time: 09/21/05 13:30:45
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Remote Address: 65.241.241.174
HTTP Referer: http://wesite name/member/admin/uploadfile.cfm?issue_no=2&did=1
Template: C:\website\michigan\member\admin\Upload_detail_form.cfm
Query String: issue_no=2&did=1.



I think the problem is in the Address I am specifying for the DESTINATION. I tried to give the IP address of the server as destination but that didnt work either (//IP Address/XyZ/File/)

Please Help!

Reply With Quote
  #2  
Old September 21st, 2005, 02:51 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,661 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 14 h 23 m 22 sec
Reputation Power: 53
First, make sure the account that the CF server is running under has write permissions to the share. If that doesn't work, try using a mapped drive instead of a UNC path.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old September 23rd, 2005, 11:09 AM
Alas's Avatar
Alas Alas is offline
Wickedwd.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: wickedwd.com
Posts: 187 Alas Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 17 h 32 m 22 sec
Reputation Power: 0
Thumbs up

happened to me 2 was the write permissions in my case, also when you do a cffile its a good idea to use the cftry tag so users dont get a nasty error message. Heres an example

Code:
<cftry>
<cffile action="upload"
accept="image/jpeg,image/jpg,image/pjpeg" 
filefield="UploadFile" 
destination="C:\CFusionMX7\wwwroot\Alas\pics\" 
nameconflict="makeunique">


<cfcatch type="ANY">

<CFSET COOKIE.ERROR = "ON">
<SCRIPT language="JavaScript"> top.location.replace("gobacktooriginalpage.cfm");  </SCRIPT>

</cfcatch>
</cftry>


then on the orginal page you say if error=on then show some error message saying user messed up.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > CFFile Tag Upload errors out


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