Answered
String index out of range: -22
I'm getting the error message "String index out of range:
-22" for my cffile upload, Here's the cffile code. The error says
it is happening on the cffile line.
<cffile action="upload" filefield="form.new_file" destination="X:\Inetpub\wwwroot\Training\NewSite" nameconflict="OVERWRITE">
The file is being sent by the form below:
<cfform action="ilearntutorialchange.cfm" method="POST" name="theaddition" enctype="multipart/form-data">
<input type="File" name="new_file">
<input type="submit" name="add" value="Add">
Dumping the variables on the page gives me
new_file = E:\CFusionMX7\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp22674.tmp
add = add
fieldnames = add, new_file
I'm using MX 7. If I try to upload a file off the same server I get "string index out of range: -2" I've tried looking in the cf administrator but I'm not finding where I check on the settings of cffile. If I need to make changes in the administrator can someone point me to where this is?
Thanks
<cffile action="upload" filefield="form.new_file" destination="X:\Inetpub\wwwroot\Training\NewSite" nameconflict="OVERWRITE">
The file is being sent by the form below:
<cfform action="ilearntutorialchange.cfm" method="POST" name="theaddition" enctype="multipart/form-data">
<input type="File" name="new_file">
<input type="submit" name="add" value="Add">
Dumping the variables on the page gives me
new_file = E:\CFusionMX7\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp22674.tmp
add = add
fieldnames = add, new_file
I'm using MX 7. If I try to upload a file off the same server I get "string index out of range: -2" I've tried looking in the cf administrator but I'm not finding where I check on the settings of cffile. If I need to make changes in the administrator can someone point me to where this is?
Thanks
