superch0054


在前两天的博文中刚介绍了一款基于jquery的多文件上传控件uploadify,原理是基于flash达到上传效果的

另外,还有一种基于隐藏iframe来实现多文件上传的方法(iframe中放一个form)。
例如:http://hi.baidu.com/yunanwu/item/c38ab756b93d593832e0a923

但是其实在Html5中,file控件已经支持多文件选择了。

file控件元素支持多文件选择,其隐藏的玄机就是下面代码中大红高亮的部分:

<input id="fileImage" type="file" size="30" name="fileselect[]" multiple=true />

如果项目可以规定浏览器是firefox的话,用html应该就问题不大了,而且实现也比较简单,
另外,在html5中,文件也能够被拖拽选择上传了。

html5下的上传控件的新特性
http://www.w3.org/TR/html-markup/input.file.html

html5缩略图多文件上传demo
http://www.zhangxinxu.com/study/201109/html5-file-image-ajax-upload.html

 

后台java获取多个文件上传代码
http://www.ssjyblog.com/post/xheditor-java-upload-html5-applicationoctetstream.html

分类:

技术点:

相关文章:

  • 2021-11-15
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
  • 2021-04-10
  • 2021-12-28
  • 2021-11-15
  • 2022-12-23
猜你喜欢
  • 2021-12-12
  • 2022-12-23
  • 2022-01-03
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案