We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06be01c commit 19f9da9Copy full SHA for 19f9da9
demo/src/com/df/angularfileupload/FileUpload.java
@@ -21,7 +21,8 @@ public class FileUpload extends HttpServlet {
21
@Override
22
protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
23
try {
24
- if (req.getHeader("Content-Type").startsWith("multipart/form-data")) {
+ if (req.getHeader("Content-Type") != null
25
+ && req.getHeader("Content-Type").startsWith("multipart/form-data")) {
26
ServletFileUpload upload = new ServletFileUpload();
27
28
FileItemIterator iterator = upload.getItemIterator(req);
0 commit comments