I'm trying to develop Servlet which simply uploads image to particular directory with unique name.
i have wrote following form:
which has two fields filename and the actual file.
Expand|Select|Wrap|Line Numbers
- <html>
- <head></head>
- <body>
- <form action="UploadImageServlet" method="POST">
- Select Photo: <input type="file" name="txtPhoto" size="20" /><br/>
- FileName: <input type="text" name="txtName" size="20" /><br/>
- <input type="Submit" value="Submit" />
- </form>
- </body>
- </html>
help needed.
regards,
Nitin Sawant