I've never used 'FORM.fileField' before, may a change to just 'fileField' would change things?
Do you check that there is a file being posted? You can check a value was given with <cfif Trim(FORM.fileField) NEQ ""> but there's no checking you can do on the data being sent so wrap the cffile tag in a cftry/cfcatch block. Also, you didn't mention it was cfform but I don't know if that maes a difference. Ade -----Original Message----- From: Colin Coles [mailto:[EMAIL PROTECTED] Sent: 25 February 2005 16:19 To: CF-Newbie Subject: Re: String index out of range: -4 >Got any more details? Uploading how? <input type="file" />? FTP and then >running the page? Sounds like you might not be passing a file in the form >field. > >Ade > Thanks for the reply. OK the upload form has this: <cfform action="uploadaction.cfm" method="post" enctype="multipart/form-data"> The uploadaction form has this: <cffile action="upload" filefield="Form.file_upload" destination="D:\inetpub\ictmt7\uploads" accept="application/msword,application/pdf,application/vnd.ms-powerpoint,tex t/plain"> If I change the destination address all that happens is the number at the end of the error changes. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:660 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
