Skip to content
Advertisement

Tag: file-upload

How can I upload files to a server using JSP/Servlet?

How can I upload files to server using JSP/Servlet? I tried this: However, I only get the file name, not the file content. When I add enctype=”multipart/form-data” to the <form>, then request.getParameter() returns null. During research I stumbled upon Apache Common FileUpload. I tried this: Unfortunately, the servlet threw an exception without a clear message and cause. Here is the

Advertisement