cffile error: String index out of range: -1

2008-07-10 Thread Kamru Miah
While using cffile upload, I seems to be getting 'String index out of range: -1' after the file is placed in the application directory. All the required parameters are given as stated in the docs. Could someone please advise me what the above error means? The code is given below: -- cffile

Re: cffile error: String index out of range: -1

2008-07-10 Thread James Holmes
The fileField parameter is incorrect - just use the name of the form element: fileField=fileName On Thu, Jul 10, 2008 at 4:45 PM, Kamru Miah [EMAIL PROTECTED] wrote: While using cffile upload, I seems to be getting 'String index out of range: -1' after the file is placed in the application

Re: cffile error: String index out of range: -1

2008-07-10 Thread Qing Xia
I have had the same error before with file upload. The cause of my problem was that the destination file path was not exactly correct. However, in your case since the file is already uploaded to the server then it must be correct. I saw that you are using the MODE attribute...could this be an

Re: cffile error: String index out of range: -1

2008-07-10 Thread Kamru Miah
I guess this is a rear error (due to unknown mimetype of file?), but can someone tell me how to handle when cffile error, so that user gets a meaningful message? ~| Adobe® ColdFusion® 8 software 8 is the most important and