Linked Questions
498 questions linked to/from How can I upload files to a server using JSP/Servlet?
68 votes
3 answers
163k views
Convenient way to parse incoming multipart/form-data parameters in a Servlet [duplicate]
Is there any convenient way to read and parse data from incoming request. E.g client initiate post request URLConnection connection = new URL(url).openConnection(); connection.setDoOutput(true); ...
11 votes
5 answers
67k views
Sending additional data with multipart [duplicate]
I am using apache-commons-fileupload to get file from client to the server.(using JSP and Servlet). JSP/HTML <form method="POST" action="GetFile" enctype="multipart/form-data"> <input type="...
14 votes
5 answers
70k views
Input TYPE TEXT Value from JSP form (enctype="multipart/form-data") returns null [duplicate]
I need to upload an image: <form method="post" action="hi.iq/register.jsp" enctype="multipart/form-data"> Name: <input type="text" name="name" value="J.Doe"> file: <input type="...
16 votes
2 answers
58k views
Servlet get parameter from multipart form in tomcat 7 [duplicate]
Making a project and need file upload. So, i am using enctype="multipart/form-data" inform. But i unable to parse parameters from request. I also tried getPart but it returning blank string. ...
10 votes
3 answers
26k views
FileNotFoundException (Is a Directory) [duplicate]
I am currently trying to upload multiple files, and the files are being upload properly into the destination directory. But in the logs it is giving me this error: java.io.FileNotFoundException: /...
11 votes
4 answers
43k views
Multipart/form-data does not support for request.getparamerter [duplicate]
I have a form. it has file uploading part as well as several input Fields. i am using request.getParameter() to get values from the jsp into the servlet. But when i add encrypt=multipart, request.get ...
7 votes
5 answers
19k views
Multi part upload file servlet [duplicate]
How can I upload files and get other paramaters of a form? I want to handle multi part requests in Java servlet.
7 votes
1 answer
25k views
Error "Unable to process parts as no multi-part configuration has been provided" when uploading file [duplicate]
I am trying to upload an file via a form in a JSP file, but I'm getting this error. The servlet already has the @MultipartConfig notation. I'm using servlet 3.0 and apache tomcat 8. Error message: ...
10 votes
2 answers
49k views
How to upload an image and save it in database? [duplicate]
I have to create a form using JavaScript and an user will upload a JPG file and submit along with other info such as name, email, etc. When the user clicks submit all the information from the form ...
5 votes
4 answers
33k views
null values getting in servlet using request.getParameter from jsp [duplicate]
I have a jsp form as below, <form action="../Registration" enctype="multipart/form-data"> <label> First Name:</label> <input type="text" class="large-field" name="...
4 votes
7 answers
52k views
Uploading multiple files using jsp & servlets [duplicate]
I am currently working on a dynamic web application that I want the user to be able to upload multiple files at once for the application to use. I don't know how many files the user may upload at once;...
3 votes
5 answers
19k views
request.getParameter on a submit button giving null value [duplicate]
On click of Generate PDF/Generate Excel submit button it is requesting the servlet FileUpload to do the processing.Now when I am trying to get the value of the submit button that i have pressed,it is ...
4 votes
4 answers
15k views
problem with file upload in jsp [duplicate]
I want to uploal a doc file to the servlet using commons-fileupload-1.2.2. I'm using this code in the front end: <form action="fileuploader" method="post" enctype="multipart/form-data"> <br&...
8 votes
2 answers
60k views
How to get files from HttpServletRequest in Java Servlet [duplicate]
The form in the HTML is like ... <form method="post" action="/foobar"> <input type="file" name="attachment" /> <input type="text" name="foo" /> ... other input fields </...
6 votes
1 answer
28k views
How to transform jakarta.servlet.http.HttpServletRequest to javax.servlet.http.HttpServletRequest [duplicate]
I use package com.oreilly.servlet to upload files to my server which is build by Tomcat 10, but it seems this package is old and the class MultipartParser need javax.servlet.http.HttpServletRequest as ...