A minimal django project containing a minimal app with a working jquery file upload form based on the work by Sebastian Tschan: http://aquantum-demo.appspot.com/file-upload
Switch branches/tags
Nothing to show
Pull request Compare This branch is 76 commits behind sigurdga:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fileupload
.gitignore
LICENSE.txt
README.md
__init__.py
manage.py
requirements.txt
settings.py
urls.py

README.md

jQuery-File-Upload is developed by Sebastian Tschan, with the source available on github. Example code is ported to Django by Sigurd Gartmann (sigurdga on github).

Introduction

This is a small example on how to setup Sebastian Tschan's jQuery File Upload in Django. He has a working demo on his webpage and a github repository with an example on how to do it in PHP.

Here, you'll find a minimal Django project with a minimal app. You can run the example standalone by cloning the repository, running the migrations and starting the server.

I want to give a thank to Sebastian Tschan, the original author, and Jørgen Bergquist for helping me over the first hurdles.

Features

  • Drag and drop files
  • Select multiple files
  • Cancel upload
  • Delete uploaded file (from database only)
  • No flash (or other browser plugins) needed
  • … more at the upstream's features page

Requirements

  • Django
  • Python Imaging Library

If you do not get PIL to work (pillow is a replacement package that works with virtulalenvs), use FileField instead of ImageField in fileupload/models.py as commented in the file.

Installation

  • pip install -r requirements.txt (will install django and pillow)
  • python manage.py syncdb
  • python manage.py runserver
  • go to localhost:8000/upload/new/ and upload some files

License

MIT, as the original project. See LICENSE.txt.