Hello Frendz,
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.
I know the logic but don't know the code to upload selected image to particular directory..
help needed.
regards,
Nitin Sawant
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.
Code:
<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
Comment