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

多附件上传问题!asp
我的代码 如下
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript">
  function AddMore(){
  var more = document.getElementById("file");
  var br = document.createElement("br");
  var input = document.createElement("input");
  var button = document.createElement("input");
  input.type = "file";
  input.name = "upload";
  input.size = "50";
  input.runat = "server";
  input.className = "buttonCss";
  button.type = "button";
  button.value = "删除";
  button.height = 20;
  button.width = 67;
  more.appendChild(br);
  more.appendChild(input);
  more.appendChild(button);
  button.onclick = function (){
  more.removeChild(br);
  more.removeChild(input);
  more.removeChild(button);
  }
  }
</script>
</head>

<body>
 <div id="file">
 <input id="File1" type="file" name="upload" size="50" runat="server"/>
 <input type="button" value="增加附件" onclick="AddMore()" style="height:20px; width:67"/>
 </div>
 <div>
  <form action="8.asp?act=tijiao" method="post">
  <input type="submit" value="提交" style="height:20px; width:67"/>
  </form>
 </div>
</body>
</html>
我通过js添加 多个附件,但是现在不知道怎么获得 附件里面的内容! 跪求,大侠帮帮忙!

------解决方案--------------------
你这是什么后台程序? asp还是net
------解决方案--------------------
现在都用控件来做了。讲究用户体验。比如一次性选择多个文件上传,而不是一个一个文件上传。这样太麻烦了。而且用户也不喜欢。
------解决方案--------------------
楼主看看这个CMS,ASP开发的:http://www.cnblogs.com/xproer/archive/2012/02/09/2343945.html
此CMS完全开源,代码质量比较高,使用了三层构架设计,代码有详细的注释,便于学习和二次开发。
自动上传Word图片

批量上传Web图片

Web截屏

文件批量上传功能