Ask a Question related to Coldfusion Security, Design and Development.
-
colesc8 #1
String index out of range: -6
I have a form that allows people to upload files to the server. Details about
the users are stored to a database as is the location of their uploads on the
CF server. The files themselves are stored as shown below. Each time I try to
upload, however, I get the following message: String index out of range: -6.
This is from the uploadaction page: <cfinsert datasource = 'pre_reg_info'
tablename = 'upload_table' formfields = ''> <cffile action='upload'
filefield='Form.file_upload' destination='D:\inetpub\ictmt7\uploads'
accept='application/msword,application/pdf,application/vnd.ms-powerpoint,text/pl
ain'> This from the uploadfileForm If I change the directory seting it simply
changes the number at the end of the error alert. I've looked all over the
internet for an answer but there is nothing specific to ColdFusion. Can anyone
help me here?
colesc8 Guest
-
String Index Out of Range: -2
I have created a form that generates an error when i post it live and try to submit it. The action page generates an error that says: string index... -
STRING INDEX OUT OF RANGE: -12
I am using a form to upload images into the images folder. Tha path to the image it is stored into the database. all works fine on my pc using... -
string index out of range: 0
I cant see why I am getting this. I am passing some vars from one page to another and would only like to display the variable if it is defined. Here... -
String index out of range: -16
I am using the CFFILE shown below to try and upload a PDF file. I get the error: String index out of range: -16 Am running CFMX 6.1 on a WIN2000... -
String Index Out of Range Error on String ComparisonQuery
I am running CFMX 6.1 on Linux connecting to a PostgreSQL database server. I am performing a simple SELECT * where somestring = thisstring When I... -
colesc8 #2
String index out of range: -6
I have a form that allows people to upload files to the server. Details about
the users are stored to a database as is the location of their uploads on the
CF server. The files themselves are stored as shown below. Each time I try to
upload, however, I get the following message: String index out of range: -6.
This is from the uploadaction page: <cfinsert datasource = 'pre_reg_info'
tablename = 'upload_table' formfields = ''> <cffile action='upload'
filefield='Form.file_upload' destination='D:\inetpub\ictmt7\uploads'
accept='application/msword,application/pdf,application/vnd.ms-powerpoint,text/pl
ain'> This from the uploadfileForm If I change the directory seting it simply
changes the number at the end of the error alert. I've looked all over the
internet for an answer but there is nothing specific to ColdFusion. Can anyone
help me here?
colesc8 Guest
-
colesc8 #3
Re: String index out of range: -6
Apologies: meant to add this from the uploadfileFOrm: <cfif upload NEQ ''>
<cffile action='upload' filefield='upload' destination='C:\temp'
nameconflict='makeunique'> <cfset upload_file= #file.ServerFile#>
colesc8 Guest
-
colesc8 #4
Re: String index out of range: -6
Apologies: meant to add this code from the uploadfileForm: <cfif upload NEQ ''>
<cffile action='upload' filefield='upload' destination='C:\temp'
nameconflict='makeunique'> <cfset upload_file= #file.ServerFile#>
colesc8 Guest
-
colesc8 #5
Re: String index out of range: -6
Just as a point of interest, the solution to this as I have since discovered is
to write the correct path to the CFserver. Unless the path to the server is
exactly right it will throw up the string index error. Colin
colesc8 Guest
-
colesc8 #6
Re: String index out of range: -6
Just as a point of interest, the solution to this as I have since discovered is
to write the correct path to the CFserver. Unless the path to the server is
exactly right it will throw up the string index error. Colin
colesc8 Guest



Reply With Quote

