Sorry Martin, it just renders the output still, but in quotes.

-----Original Message-----
From: Martin Sutton     
Sent: 09 March 2001 13:23
To: CF-Talk
Subject: RE: input type="file"


I think you need to use:

mimeattach="'#form.myfile#'" 

That should work.

Martin.

----------------------------------------------------------------------------
-------------
LEGAL DISCLAIMER --
This message and any attachments to it is intended only for the individual
or company to which it is addressed and may contain information which is
privileged, confidential or prohibited from disclosure or unauthorised use.
If the recipient of this transmission is not the intended recipient, or the
employee or agent responsible for delivering such materials to the intended
recipient, you are hereby notified that any use, any form of reproduction,
dissemination, copying, disclosure, modification, distribution and/or
publication of this e-mail message or its attachments other than by its
intended recipient is strictly prohibited by the sender. If you have
received it in error, please return it to the sender and destroy the message
and/or copies in your possession.  The views or opinions expressed in this
email are that of the individual and not necessarily those of A.B.C (Systems
and Development) Limited or any of it's subsidiaries.



-----Original Message-----
From: Wilson, Craig [mailto:[EMAIL PROTECTED]]
Sent: 09 March 2001 12:55
To: CF-Talk
Subject: input type="file"


After using the following code to browse for a file (thanks Philip),

<form action="myPage.cfm" method="post" ENCTYPE="multipart/form-data">
<input type="file" name="myFile">
<input type="submit">
</form>

I want to use the variable #FORM.MYFILE# to form part of a CFMAIL command
using mimeattach :

<cfmail                 to="smtp.address" 
                subject="Submit Problem"
                mimeattach="#form.myfile#" 
                from="#client.mailbox#">In #form.field1#,
#form.field2#</cfmail>


For some reason (in my example I used a text file), it renders the contents
of the text document on the action page in full and doesn't interpret the
file name as a string which is what I would hope it would do.

Can anyone help?




****************************************************************************
******

The opinions expressed in this E-mail are those  of  the individual  and
not  necessarily  the  company.  This E-mail and  any files transmitted 
with it are confidential and solely for the use of the intended recipients

****************************************************************************
******
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to