Im getting the error below:
500 org/apache/commons/fileupload/FileUploadBase
org/apache/commons/fileupload/FileUploadBase
I dont know if its a compatibility issue or a coding one.
There seems to be sort of issue with trying to get the header (content-type) from the
JSP?
Im trying to do the following:
String type = request.getContentType();
And it throws the error as stated above!
The JSP looks like below....
<%@ page contentType="text/html; charset=ISO-8859-1" %>
<%@ page import="java.sql.*" %>
<html>
<head>
<link rel="stylesheet" type="text/css" href="REJ_r_panel.css" />
<title>new paper</title>
<%@ page language="java" %>
</head>
<body>
<div style="position: absolute; width: 806px; height: 400px; z-index: 6; left: 0px; top: 13px; border: 1px solid #C0C0C0" id="layer6">
<div style="position: absolute; width: 31px; height: 27px; z-index: 6; left: 189px; top: 199px" id="layer12">
<font face="Arial">File</font></div>
<%
String user_id = request.getParameter("username");
String paper_id = request.getParameter("paper_id");
%>
<div style="position: absolute; width: 460px; height: 97px; z-index: 4; left: 224px; top: 119px" id="layer10">
<form method="POST" action="./servlet/REJfiles.UploadServlet" enctype="multipart/form-data">
<p><input type="text" name="paperTitle" size="50"></p>
<p><input type="text" name="coAuthors" size="50"></p>
<p><input type="file" name="file" size="50"></p>
<p><font face="Arial">Please make sure you have read the 'instructions
for authors'</font></p>
<input type="submit" value="Submit.." />
<p> </p>
<p> </p>
<p> </p>
</form>
Any ideas where im going wrong?