i use the MultipartRequest class getParameter function to receive html form data apart
from the files which are uploaded too. i do not know why i get the error saying
posted content type is not multi part form data. when i upload files with this
servlet without any input type=text type data
you _have_ to set the encoding on your form :
form method=POST action=/some_url enctype=multipart/form-data
[some_form_inputs]
/form
bye
David
- Original Message -
From: # Lalit Nagpal # [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 06, 2002 4:12 PM
Subject: help plz
P I HAVE ALREADY DONE THAT
Pnbsp; BIDavid Rault
lt;[EMAIL PROTECTED]gt;/I/B wrote:
BLOCKQUOTE style=BORDER-LEFT: #1010ff 2px solid;
MARGIN-LEFT: 5px; PADDING-LEFT: 5pxyou _have_ to set
the encoding on your form :BR
FORM action=/some_url encType=multipart/form-data
i use the
MultipartRequest class getParameter function to
receive html form data apart from the files which
are uploaded too. i do not know why i get the error
saying posted content type is not multi part form
data. when i upload files with this servlet
without any INPUT type=text data upload
well, first of all, YOU DON'T HAVE TO CAPITALIZE YOUR TEXT
IT'S ANNOYING TO READ
i'm trying to _help_ here
try to send some of your html code (the multi part form)
and the code of the server component in which you initialize the
wrapper/read the parameters
by the way, some extra info might help
so sorry ... so sorry for capitalising ... i know u
were trying to help ... just that things r urgent ...
so sorry anyway
html code a bit, form, type=text and type=file tags
body
form name=commonform action=/servlet/TotalUpload
ENCTYPE=multipart/form-data
input type=text size=10
# To: Tomcat Users List
[EMAIL PROTECTED]
lalit_tomcat@cc:
yahoo.comSubject: Re: help plz urgent