Jeff,
here is a section from a file upload form I use. This is after the persion
has dynamically selected their destination within the base directory I set:
---------
<CFOUTPUT>
<INPUT TYPE="hidden"
NAME="dirname"
VALUE="#dir#">
</CFOUTPUT>
Type or select the file to upload from your machine:<BR>
<INPUT TYPE="file"
NAME="Filename"
SIZE="30"
MESSAGE="Type
the file name here" ACCEPT="image/gif">
<BR><BR>
<INPUT TYPE="submit"
NAME="Submit"
VALUE="Press to upload"
</TD></TABLE>
</body>
</html>
------------------
the action form is:
<HTML>
<HEAD>
<TITLE> CFFILE Tag File Upload </TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<CFFILE ACTION="UPLOAD"
FILEFIELD="filename"
DESTINATION="#form.dirname#"
NAMECONFLICT="OVERWRITE">
<CFOUTPUT> begin of report back to user
------------
hope this helps
Richard Kern
-----Original Message-----
From: Giesbrecht, Jeffrey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 04, 2000 11:48 AM
To: Fusebox
Subject: Uploading a file?
I have an application where files need to be uploaded and am not sure how to
structure my code so that the appropriate info is passed. On the form page
(dsp_page) I have it submitting back to the index.cfm with a fuseaction of
upload.
My action page keeps choking saying the following: In order to upload a file
from a form submission you must specify a FILEFIELD attribute to indicate
which form field contains the uploaded file.
Thanks for the help,
Jeff Giesbrecht
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.