I am using a siof the file to the opener so I can submit my finished message to be sent.
Please let me know what is going on.
Thanks.mple form, all it does is lets the user choose a file to use as an attachement. Once the user chose a file, two things will happen, one is to pass the form to handleAttachAction.jsp, which simply creates a mimebody and loads the file, this works fine as a servlet on its own. And the second is to pass the name
--
FORM name="atForm" METHOD="POST" ENCTYPE="multipart/form-data" action="handleAttachActions.jsp?action=attachnewAttach=falsefilename=" + document.atForm.attachment"
add attachment:BRINPUT TYPE="FILE" NAME="attachment" value=""input type=hidden name=fileat value=""BRINPUT name="Add" value="add" TYPE="submit" onSubmit="javascript:putForm('')"/FORM
--
Stefán_F._Stefánsson [EMAIL PROTECTED] wrote:
what does your
tag (in HTML) look like?-Original Message-From: Falcon cheetah [mailto:[EMAIL PROTECTED]]Sent: 27. nóvember 2000 07:19To: [EMAIL PROTECTED]Subject: ENCTYPE="multipart/form-data" I am trying to load a file to my server, in order touse it as an attachment for a JavaMail webmail. I amusing an example, which works fine by itself till Istart to use it in my application.I am using a form that specifies the encryption typetoENCTYPE="multipart/form-data" which seems likesomething tomcat does not like! If I remove this linefrom my form I do not get the attached error, butnothing seems to work.What am I doing wrong here?Please tell me how to ask a user to choose a file tobe attached to his email and what is the best way touploaed it. I am using a couple of examples thatreally work. But not for tomcat.I am running tomcat 2.3.8 with apache1.3.14 on rd6.1.Error Log -No file was attached!try again!HTTP/1.1 200 OK Date: Mon, 27 Nov 2000 07:02:05 GMTServer: Apache/1.3.14 (Unix) mod_jk Connection: closeContent-Type: text/html; charset=iso-8859-1 OKThe server encountered an internal error ormisconfiguration and was unable to complete your request.__Do You Yahoo!?Yahoo! Shopping - Thousands of Stores. Millions of Products.http://shopping.yahoo.com/Do You Yahoo!?
Yahoo! Shopping -
Thousands of Stores. Millions of Products.