Uploading multiple files in Django through one form field(通过一个表单字段在 Django 中上传多个文件)
问题描述
是否有任何自定义小部件(或特殊的魔术方式)可以通过一个表单字段上传多个文件(或整个文件夹!)?我试过 这个多文件小部件 但是它使用了许多简单的 FileFiled.
Is there any custom widget (or a special magic way) to upload multiple files (or a whole folder!) through one form field? I have tried this multifile widget but it uses many simple FileFileds.
推荐答案
https://github.com/tstone/django-uploadify 是一个可重用的 Django 应用程序,它集成了 http://uploadify.com.
https://github.com/tstone/django-uploadify is a reusable Django app that integrates http://uploadify.com.
来自 Uploadify 的网站:
From Uploadify's website:
Uploadify 是一个 jQuery 插件,它在您的网站上集成了一个完全可定制的多文件上传实用程序.它混合使用 Javascript、ActionScript 和任何服务器端语言,在页面上的任何 DOM 元素上动态创建实例.
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.
这篇关于通过一个表单字段在 Django 中上传多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:通过一个表单字段在 Django 中上传多个文件


- 如何将一个类的函数分成多个文件? 2022-01-01
- 使用Heroku上托管的Selenium登录Instagram时,找不到元素';用户名'; 2022-01-01
- 如何在 Python 的元组列表中对每个元组中的第一个值求和? 2022-01-01
- 分析异常:路径不存在:dbfs:/databricks/python/lib/python3.7/site-packages/sampleFolder/data; 2022-01-01
- pytorch 中的自适应池是如何工作的? 2022-07-12
- padding='same' 转换为 PyTorch padding=# 2022-01-01
- python-m http.server 443--使用SSL? 2022-01-01
- python check_output 失败,退出状态为 1,但 Popen 适用于相同的命令 2022-01-01
- 如何在 python3 中将 OrderedDict 转换为常规字典 2022-01-01
- 沿轴计算直方图 2022-01-01