HTML 5文件输入多个-选择第一组文件后添加另一个文件 [英] HTML 5 file input multiple - add another files after selecting first group of

查看:109
本文介绍了HTML 5文件输入多个-选择第一组文件后添加另一个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不喜欢HTML5多个文件选择的工作方式.首先,我选择了5个文件,然后确定,它显示了5个选定的文件.之后,我决定要再添加3个文件.但是,当我这样做时,旧" 5个文件消失了,只有3个新文件消失了.

我知道使用jquery获取选定文件的文件列表是没有问题的,但是有没有机会处理选定文件并插入其他文件呢?

我不想使用这样的解决方案,例如您必须一个一个地选择文件,并且另一个上载按钮附加到文档上,当我看到类似的页面时,我倾向于破坏我所能看到的一切.

据我所知,

解决方案

AS很难通过HTML实现.最好将Ajax表单文件上传用于标准类型.您可以参考以下链接:

JQuery文件上传器- https://github.com/danielm/uploader/

多个文件上传插件- http://www.fyneworks.com/jquery/multiple-file-upload/

迷你多个文件上传- http://demo .tutorialzine.com/2013/05/mini-ajax-file-upload-form/

jQuery文件上传- http://blueimp.github.io/jQuery-File-上载/

希望这会有所帮助

I don't like how HTML5 multiple files selection works. First I select for example 5 files and that's OK, it shows 5 selected files. After that, I decided that I want to add 3 more files. But when I do, the "old" 5 files dissapears and only 3 new are here.

I know that it is no problem get filelist of selected files using jquery, but is there any chance how to manipulate with selected files and insert few others ?

I don't want to use solutions like you must select file one by one and another upload button is appending to document, when I see pages like that I have inclination to destruct everything what I am able to see.

解决方案

AS per my knowledge Its difficult to achieve through HTML. It’s better to use Ajax Form File Upload for standard type. You can refer below links:

JQuery File Uploader - https://github.com/danielm/uploader/

Multiple File Upload Plugin - http://www.fyneworks.com/jquery/multiple-file-upload/

Mini Multiple File Upload - http://demo.tutorialzine.com/2013/05/mini-ajax-file-upload-form/

jQuery File Upload - http://blueimp.github.io/jQuery-File-Upload/

Hope this helps

这篇关于HTML 5文件输入多个-选择第一组文件后添加另一个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆