florisb
asked on
CFdirectory, please help fast!
Hi,
The code
<cfdirectory action="CREATE"
name="xxx2"
directory="d:\inetpub\carg oweb\uploa d\companie s\xxx2">
works on one server and not on another, while the cfdirectory tag is switched on, on both servers!
Please help!
Floris.
Errormessage:
Error Occurred While Processing Request
Error Diagnostic Information
Attribute set validation error in tag CFDIRECTORY
The tag has an invalid attribute combination: the value of the tag switch attribute 'ACTION' which is now 'CREATE' requires a different combination of attributes. For the same switch attribute value the following unknown attributes have been provided: (NAME).
The error occurred while processing an element with a general identifier of (CFDIRECTORY), occupying document position (2:1) to (3:17).
The code
<cfdirectory action="CREATE"
name="xxx2"
directory="d:\inetpub\carg
works on one server and not on another, while the cfdirectory tag is switched on, on both servers!
Please help!
Floris.
Errormessage:
Error Occurred While Processing Request
Error Diagnostic Information
Attribute set validation error in tag CFDIRECTORY
The tag has an invalid attribute combination: the value of the tag switch attribute 'ACTION' which is now 'CREATE' requires a different combination of attributes. For the same switch attribute value the following unknown attributes have been provided: (NAME).
The error occurred while processing an element with a general identifier of (CFDIRECTORY), occupying document position (2:1) to (3:17).
ASKER
thanks for the fast reaction , but that wasn't the problem.
I found the error; it's the name attribute. This gives an error on our life server and not opn our testserver!!!
I found the error; it's the name attribute. This gives an error on our life server and not opn our testserver!!!
ASKER
Message waiting to be deleted.
Hi,
well i dont see why the name shld be the problem
sounds fine to me
ne-ways
K'Rgds
Anand
well i dont see why the name shld be the problem
sounds fine to me
ne-ways
K'Rgds
Anand
your live server must be a linux server and you should provide mode attribute.
put the relative path of company from ur current directory.
you have to adjust the parameter accordingly.
<cfset dirName = #ExpandPath("../upload/com
<cfset dirName = "#dirName#" & "/" & "#folderName#">
<cfdirectory action="CREATE" directory="#dirName#">
ASKER
close?
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation in the Cleanup topic area:
PAQ/Refund
Please leave any comments here within the next four days.
mrichmon
EE Cleanup Volunteer
I will leave the following recommendation in the Cleanup topic area:
PAQ/Refund
Please leave any comments here within the next four days.
mrichmon
EE Cleanup Volunteer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<CFIF NOT DIRECTORYEXISTS('Full physical path with a back slash')>
<CFDIRECTORY ACTION="CREATE" DIRECTORY="'Full physical path with a back slash">
</CFIF>
may be cos u missed out the
1. back slash
2. may be the 2nd server dosent have the path specified "d:\inetpub\cargoweb\uploa
try this & let me know
K'Rgds
Anand