请问老师 怎么上传指定目录下的摸个文件到服务器 比如上传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>