Your problem is in the CFFile tag.

You're missing  trailing slash on the destination parameter.

Change this:
DESTINATION="c:\www\dre\home_images"
to this:
DESTINATION="c:\www\dre\home_images\"

Then try it again!

James
----- Original Message -----
From: "jon hall" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, August 12, 2002 1:48 PM
Subject: Re: uploadng files


> Your code looks fine. What browser are you using? Some Mac browsers
> are known to have problems with file uploading in general.
>
> --
>  jon
>  mailto:[EMAIL PROTECTED]
>
> Monday, August 12, 2002, 3:23:23 PM, you wrote:
> JAT> trying to upload files.  here's what i got.
>
> JAT> upload.cfm =
> JAT> <form action="upload-action.cfm" enctype="multipart/form-data">
> JAT> <input type="file" name="filecontents">
> JAT> <br>
>
> JAT> <input type="submit" value="UPLOAD THE FILE">
>
> JAT> </form>
>
>
> JAT> upload-action.cfm =
>
> JAT> <CFFILE ACTION="Upload"
> JAT>     FILEFIELD="FileContents"
> JAT>     DESTINATION="c:\www\dre\home_images"
> JAT>     ACCEPT="image/jpg"
> JAT>     NAMECONFLICT="MakeUnique">
> JAT> <Cfoutput>
> JAT> You just uploaded this file: #clientfile#
> JAT> It can be viewed now at http://localhost/dre/home_images/#clientfile#
> JAT> </CFOUTPUT>
>
> JAT> just trying to get a small demo setup running.  basic functionality.
>
> JAT> im getting this error:
>
> JAT> Error in CFFILE tag
>
> JAT> The form field specified in the CFFILE tag (FILECONTENTS) does not
contain
> JAT> an uploaded file. Please be sure that you have specified the correct
form
> JAT> field name.
>
> JAT> The error occurred while processing an element with a general
identifier of
> JAT> (CFFILE), occupying document position (9:1) to (13:30) in the
template file
> JAT> c:\www\dre\admin\upload-action.cfm.
>
> 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to