trying to upload files.  here's what i got.

upload.cfm =
<form action="upload-action.cfm" enctype="multipart/form-data">
<input type="file" name="filecontents">
<br>

<input type="submit" value="UPLOAD THE FILE">

</form>


upload-action.cfm =

<CFFILE ACTION="Upload"
    FILEFIELD="FileContents"
    DESTINATION="c:\www\dre\home_images"
    ACCEPT="image/jpg"
    NAMECONFLICT="MakeUnique">


<Cfoutput>
You just uploaded this file: #clientfile#
It can be viewed now at http://localhost/dre/home_images/#clientfile#




</CFOUTPUT>



just trying to get a small demo setup running.  basic functionality.

im getting this error:

Error in CFFILE tag

The form field specified in the CFFILE tag (FILECONTENTS) does not contain
an uploaded file. Please be sure that you have specified the correct form
field name.

The error occurred while processing an element with a general identifier of
(CFFILE), occupying document position (9:1) to (13:30) in the template file
c:\www\dre\admin\upload-action.cfm.



any ideas?




______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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