問(wèn)題描述
是否有任何自定義小部件(或特殊的魔術(shù)方式)可以通過(guò)一個(gè)表單字段上傳多個(gè)文件(或整個(gè)文件夾!)?我試過(guò) 這個(gè)多文件小部件 但是它使用了許多簡(jiǎn)單的 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 是一個(gè)可重用的 Django 應(yīng)用程序,它集成了 http://uploadify.com.
https://github.com/tstone/django-uploadify is a reusable Django app that integrates http://uploadify.com.
來(lái)自 Uploadify 的網(wǎng)站:
From Uploadify's website:
Uploadify 是一個(gè) jQuery 插件,它在您的網(wǎng)站上集成了一個(gè)完全可定制的多文件上傳實(shí)用程序.它混合使用 Javascript、ActionScript 和任何服務(wù)器端語(yǔ)言,在頁(yè)面上的任何 DOM 元素上動(dòng)態(tài)創(chuàng)建實(shí)例.
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.
這篇關(guān)于通過(guò)一個(gè)表單字段在 Django 中上傳多個(gè)文件的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!