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:
<form action="action.cfm" method="post" enctype="multipart/form-data">
<input type="file" name="myFile">
<input type="submit" name="submit">
</form>

ACTION page:
<cffile action="upload" fileField="myFile" destination="#ExpandPath('.')#">
<cfdump var="#CFFile#">

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:
> --
> <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:308850
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to