Are you sure you've included the required parameter
enctype="multipart/form-data"
in your <form> tag?
I've been doing this for years and I always forget that, then waste a few
minutes scratching my head as to why my cffile action="upload" doesn't work
until I suddenly remember this parameter that I otherwise have never needed
to include in my <form> tags.
Good luck.
-- Larry Afrin, M.D.
Medical University of South Carolina
[EMAIL PROTECTED]
--On Tuesday, September 23, 2003 2:01 PM -0400 Ryan Roskilly
<[EMAIL PROTECTED]> wrote:
> I have a form where users enter there data, including input type="file".
> This page post to a preview page where the passed form fields are then
> inserted into hidden form fields. If the user is happy with the preview,
> they then hit save and the data inserts into the db. The problem is that
> on the action page. I get an error saying
>
> The form field specified in the CFFILE tag (EMAIL_DOCUMENT) does not
> contain an uploaded file
>
> Even though this cffile is wrapped in
>
> <cfif isDefined("form.Email_document") AND len(trim(form.Email_document))>
>
> Basically it sounds like cffile cannot upload passed documents.
>
> Debug does display: EMAIL_DOCUMENT=C:\WINNT\TEMP\ACF5979.tmp
>
> Any ideas on if it is even possible to upload passed references to a file?
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138164
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
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