katherinep
Programmer
Hello,
I have a coldfusion page that takes in some variable from a form, I then want it to write this file to an xml file. I have got it to work on my local server but when I upload it to the web and change the file path to that web address I get this error:
Error processing CFFILE
Error attempting to write data to target file '
Error: All or part of the path is invalid.
My code is like this
Anyone have any ideas? I can't give you the URL as it is for a client. Can I write a xml file to a web address?
Thanks in advance,
Katherine
I have a coldfusion page that takes in some variable from a form, I then want it to write this file to an xml file. I have got it to work on my local server but when I upload it to the web and change the file path to that web address I get this error:
Error processing CFFILE
Error attempting to write data to target file '
Error: All or part of the path is invalid.
My code is like this
Code:
<CFSET theFile="[URL unfurl="true"]http://www.mywebaddress/menu.xml">[/URL]
<CFOUTPUT>
<CFFILE ACTION="write" file="#theFile#" output="#thenew#">
</CFOUTPUT>
Anyone have any ideas? I can't give you the URL as it is for a client. Can I write a xml file to a web address?
Thanks in advance,
Katherine