App-Engine (Java) File Upload

Posted by Manjoor on Stack Overflow See other posts from Stack Overflow or by Manjoor
Published on 2010-04-26T08:31:13Z Indexed on 2010/04/26 8:33 UTC
Read the original article Hit count: 263

Filed under:
|
|
|

I managged to upload files on app-engine by using the following example

http://stackoverflow.com/questions/1513603/how-to-upload-and-store-an-image-with-google-app-engine-java

and

http://www.mail-archive.com/[email protected]/msg08090.html

The problem is, I am sumitting other fields along with file field as listed below

<form action="index.jsp" method="post" enctype="multipart/form-data">
    <input name="name" type="text" value=""> <br/>
    <input name="imageField" type="file" size="30"> <br/>
    <input name="Submit" type="submit" value="Sumbit">
</form>

In my servlet I am getting null when querying

name = request.getParameter("name");

Why it is so? Is there a way to retrieve text field value?

© Stack Overflow or respective owner

Related posts about java

Related posts about google-app-engine