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 urgent
>
> 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
upload works fine. when i try to get other fields alongwith the <input
type="file" at the server end file upload does not work. plz help. i want to
receive both textual data typed by the user and a file attached by the user
at the server from a single form. but when i try to do this i get "content
type is not multipart form-data" error. someone plz help urgent.
>
> thanx a lot
>
>
> # Lalit Nagpal #
>
>
> ---------------------------------
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>