通过一个表单域在Django中上载多个文件

2024-05-16 11:01:57 发布

您现在位置:Python中文网/ 问答频道 /正文

是否有任何自定义小部件(或特殊的魔术方式)来上传多个文件(或整个文件夹!)通过一个表单域? 我试过this multifile widget但它使用了许多简单的文件。


Tags: 文件文件夹表单部件方式魔术widgetthis
3条回答

https://github.com/tstone/django-uploadify是一个可重用的Django应用程序,它集成了http://uploadify.com

从Uploadify的网站:

Uploadify is a jQuery plugin that integrates a fully-customizable multiple file upload utility on your website. It uses a mixture of Javascript, ActionScript, and any server-side language to dynamically create an instance over any DOM element on a page.

不,你不能那样做-HTML文件输入不允许这样做。

HTML5现在允许在一个表单控件中上载多个文件。

http://www.w3.org/TR/html-markup/input.file.html#input.file.attrs.multiple

相关问题 更多 >