Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Vs Unix in CFFILE

Status
Not open for further replies.

mansii

Programmer
Joined
Oct 18, 2002
Messages
641
Location
ID
Greetings!

I (for sure) have a problem with CFFILE.
Developed on my WindowsXP system machine, this below script runs smooth but not on my UNIX Server:

myform.cfm
Code:
<form action="upload.cfm" method="post" enctype="multipart/form-data">
<input type="File" name="file2Upload" value="">
<input type="Submit">
</form>
upload.cfm
Code:
<CFSET thisPath= ExpandPath("*.*")>
<CFSET thisDirectory= GetDirectoryFromPath(thisPath)>
<cffile action="UPLOAD" filefield="file2Upload" destination="#thisDirectory#">
</CFOUTPUT>

Resulting error message:

[blue]
Error processing CFFILE

The directory specified in the DESTINATION attribute of the CFFILE tag (/data99/webroot/myserver.mansii.go.id/htdocs/common/stf/) is not valid. The directory either does not exist or is not accessible by the ColdFusion service.
[/blue]

Any help would be appreciated.
mansii
 
I had the same sort of thing recently, and it sounds like a permissions problem.

I assume that you are in a shared hosting environment. If you are and don't have access to the server, you will have to get the admin people to change the permissions on the directory using chmod. chmod 777 usually does it.

if you have access to the server yourself, then move to the directory above the directory you are trying to upload to and use the chmod 777 [upload directory name]

Hope this helps!

Tony
 
Tony,
I'll give it a try then get back to you with the result.
Thank's.
mansii
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top