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:
> --
> <cffile
> 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