jQuery MultiFile - 如何清除/重置?
我正在使用此处的 jQuery 多文件上传插件:
http://www.fyneworks.com/jquery/multiple-file-upload/< /a>
我在任何示例中都没有看到“重置”文件选择器的方法, 清除所有当前选定的项目。
有人知道该怎么做吗? 谢谢!
I'm using the jQuery multi-file upload plugin found here:
http://www.fyneworks.com/jquery/multiple-file-upload/
I don't see in any of the examples though a way to "reset" the file-picker,
clearing out any currently selected items.
Any one know how to do this?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
来自下载中包含的文档。还在 上传 文档页面上注明(滚动到底部, AJAX 下)。
From the documentation included in the download. Also noted on the Upload documentation page (scroll to bottom, under AJAX).
对于任何感兴趣的人,我在此处上传了我的多文件。
我最终推出了自己的插件,因为我无法让这个插件工作。
我必须从特定于客户端的文件中剔除很多内容,但文件上传的重要内容都应该在那里。我没有包含用于解析表单提交的上传库,只是包含用于创建多文件上传 UI 的客户端代码。一切均按原样提供。
希望它可以帮助别人!
For anyone interested, I uploaded my multi-file here.
I wound up rolling my own, because I could not get this plug-in to work.
I had to cull a lot out of the file that was specific to the client, but the important stuff for the file upload should all be there. I did NOT include the upload library for parsing the form submission, just the client code for creating a multi-file upload UI, for what it is. It's all provided as is.
Hope it may help somebody!
这也行..
This also works..