以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  指定目录下文件上传  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=147307)

--  作者:lshshlxsh
--  发布时间:2020/3/13 16:53:00
--  指定目录下文件上传
请问老师 怎么上传指定目录下的摸个文件到服务器  比如上传C盘下 a.xls到服务器 要怎么修改下面代码?


<!DOCTYPE html>
<html lang=\'zh-cmn-Hans\'>
<head>
<meta charset=\'utf-8\'>
<meta name=\'viewport\' c>
<title></title>
</head>
<form method=\'post\' enctype=\'multipart/form-data\' id=\'form1\' name =\'form1\' action =\'receive.htm\'>
<input class=\'weui_uploader_input\' type=\'file\' id=\'up128\' name=\'up128\' multiple data-incremental data-scalewidth=400 />
<button id=\'btn1\' name=\'btn1\' type=\'button\' class=\'weui_btn \' >确定</button>
</form>
 <script type="text/javascript">
function aa(){ 
var frm =document.getElementById("form1");
    var frmdata = new FormData(frm);
var http=new XMLHttpRequest();
http.open("POST","receive.htm",false);
http.send(frmdata);
 }
</script>
</body>
</html>


--  作者:有点蓝
--  发布时间:2020/3/13 17:04:00
--  
https://www.baidu.com/baidu?word=js%20上传文件