RE: ENCTYPE=multipart/form-data

2000-11-28 Thread Falcon cheetah
 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.

RE: ENCTYPE=multipart/form-data

2000-11-27 Thread Stefán F. Stefánsson

what does your form tag (in HTML) look like?

-Original Message-
From: Falcon cheetah [mailto:[EMAIL PROTECTED]]
Sent: 27. nóvember 2000 07:19
To: [EMAIL PROTECTED]
Subject: ENCTYPE="multipart/form-data" 


I am trying to load a file to my server, in order to
use it as an attachment for a JavaMail webmail. I am
using an example, which works fine by itself till I
start to use it in my application.

I am using a form that specifies the encryption type
to
ENCTYPE="multipart/form-data" which seems like
something tomcat does not like! If I remove this line
from my form I do not get the attached error, but
nothing seems to work.

What am I doing wrong here?

Please tell me how to ask a user to choose a file to
be attached to his email and what is the best way to
uploaed it. I am using a couple of examples that
really 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 GMT
Server: Apache/1.3.14 (Unix) mod_jk Connection: close
Content-Type: text/html; charset=iso-8859-1 

OK

The server encountered an internal error or
misconfiguration and was unable to complete your request.

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/