Re: cffile error: String index out of range: -1
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 dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308858 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cffile error: String index out of range: -1
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 incompatibility with Linux/Unix? Maybe try to go back to the basics and see if you can work your way up to a solution. Try this: FORM page: ACTION page: What happens with that? On Thu, Jul 10, 2008 at 4:45 AM, 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 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: > -- > action="upload" > destination="#ExpandPath('.')#" > nameConflict="overwrite" > fileField="form.fileName" > mode=777> > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308850 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cffile error: String index out of range: -1
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 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: > -- > action="upload" > destination="#ExpandPath('.')#" > nameConflict="overwrite" > fileField="form.fileName" > mode=777> > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308848 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
cffile error: String index out of range: -1
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: -- ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308842 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4