CFdirectory, please help fast!

florisb
florisb used Ask the Experts™
on
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).

 


Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
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

Author

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

Author

Commented:
Message waiting to be deleted.
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Commented:
Hi,

well i dont see why the name shld be the problem
sounds fine to me

ne-ways

K'Rgds
Anand

Commented:
your live server must be a linux server and you should provide mode attribute.

Commented:

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#">

Author

Commented:
close?

Commented:
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
Commented:
PAQed, with points refunded (150)

CetusMOD
Community Support Moderator

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial