File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Make it so: Java DB Connections & Transactions
this week in the
How can I read parameters from a multipart/form-data upload form?
Joined: Jan 14, 2010
May 30, 2011 03:06:58
<FORM ACTION="/servlet/FooServlet" ENCTYPE="multipart/form-data" METHOD=POST> What is your name? <INPUT TYPE=TEXT NAME='submitter'><br> What file are you sending? <INPUT TYPE=FILE NAME=secretDocument><br> <input type="submit" value=Submit><br> </FORM>
I cannot read the submitter using request.getParameter("submitter") (it returns null). ]
author & internet detective
Joined: May 26, 2003
May 30, 2011 07:04:19
Are you using a library to deal with the multipart "part"?
is very commonly used to separate the file upload form the plain text parameters.
OCA 8 book
How To Ask Questions The Smart Way
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: How can I read parameters from a multipart/form-data upload form?
problem with multipart/form-data
HTTP POST maximum data size?
More problems with file uploads
Servlets, HTML forms, multipart/form-data
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015