日期:2014-05-17  浏览次数:20664 次

smartupload文件上传的目录如何确定
<%@ page contentType="text/html" pageEncoding="GBK"%>
<%@ page import="org.lxh.smart.*"%>
<html>
<head><title>www.mldnjava.cn,MLDN高端Java培训</title></head>
<body>
<%
SmartUpload smart = new SmartUpload() ;
smart.initialize(pageContext) ; // 初始化上传操作
smart.upload() ; // 上传准备
smart.save("目录") ; // 文件保存
%>
</body>
</htm>
让文件上传到我指定的文件夹下,上面的目录如何设置为我设定的文件夹。例如:c:\upload

------解决方案--------------------
设定为你的指定的存在的文件夹绝对路径为好: