Link to home
Start Free TrialLog in
Avatar of florisb
florisb

asked on

CFdirectory, please help fast!

Hi,

The code
<cfdirectory     action="CREATE"
          name="xxx2"
directory="d:\inetpub\cargoweb\upload\companies\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).

 


Avatar of anandkp
anandkp
Flag of India image

Hi try this,

<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\upload\companies\"

try this & let me know

K'Rgds
Anand
Avatar of florisb
florisb

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!!!

Avatar of florisb

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
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/companies")#>
<cfset dirName = "#dirName#" & "/" & "#folderName#">
<cfdirectory action="CREATE" directory="#dirName#">
Avatar of florisb

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
ASKER CERTIFIED SOLUTION
Avatar of CetusMOD
CetusMOD
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial