> 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?

No, it isn't possible to do what you're trying to do. When you upload a file
from an HTML form, you have to deal with that file in the action page; you
can't pass it as a variable to the next page. You'll need to use CFFILE in
your "preview" page, then if you need to change or delete the file, you can
do that in the "save" page.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138170
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

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Reply via email to