jsp代码:<%@ page contentType="text/html; charset=GB2312" %>
<%
String path = request.getContextPath();
%>
<html>
<head></head><body>
<form action="<%=path%>/servlet/SendFileServlet" method="post" ENCTYPE="multipart/form-data">
<input type="file" name="upfile"/>
<input type="submit" value="上传"/>
</form>
</body>
</html>
servlet代码:SmartUpload mySmartUpload = new SmartUpload();
mySmartUpload.initialize(getServletConfig(), request,response);
mySmartUpload.setMaxFileSize(10*1024*1024);
mySmartUpload.setTotalMaxFileSize(50*1024*1024);
mySmartUpload.upload();
为什么每次执行到mySmartUpload.upload();的时候都超慢,读进度条半天,我传仅仅为一个300字节的小文件,这是为什么?
另外,谁有如何分析request.getInputStream()的资料,能传给我么[email protected],希望能知道怎么在流中找到哪些是上传的文件,哪些是其他参数等等。。