急問jspsmart上傳文件問題。(在線等)
提交頁面FORM:
<form action="../dealwith/fileUpLoad.jsp" name="form1" method="POST" enctype="multipart/form-date">
處理頁面:
SmartUpload myUpload = new SmartUpload();
myUpload.initialize(pageContext);
myUpload.setAllowedFilesList("xls");
myUpload.setDeniedFilesList("exe,bat,,");
myUpload.upload();
String fileName=myUpload.getFiles().getFile(0).getFileName();
myUpload.save("/excel/"+fileName,myUpload.SAVE_VIRTUAL);
出現錯誤: Files' name is invalid or does not exist (1205)