jspsmartupload:File can't be saved (1120).请指教!
<%
// Variables
int count=0;
String systime="";
String path="";
String path1="";
try
{
// Initialization
mySmartUpload.initialize(pageContext);
// Upload
mySmartUpload.upload();
// Select each file
for (int i=0;i<mySmartUpload.getFiles().getCount();i++){
// Retreive the current file
com.jspsmart.upload.File myFile = mySmartUpload.getFiles().getFile(i);
// Save it only if this file exists
if (!myFile.isMissing()) {
systime=String.valueOf(System.currentTimeMillis())+myFile.getFileName();
myFile.saveAs("/uploadpic/"+systime,mySmartUpload.SAVE_VIRTUAL);
count ++;
}
}
session.putValue("systime",systime);
out.println("图片上传成功!");
out.println(path);
out.println(systime);
}
catch (ServletException er)
{
out.print("fail");
}
%>
报错:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: File can't be saved (1120).
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.public_.sample2_jsp._jspService(sample2_jsp.java:109)
说明:这段程序在本地环境运行正常,但是在远程虚拟主机上就出现上面的错误!