Skip to content

Simple, Chunked and Concurrent uploads with Django + Fine Uploader

License

Notifications You must be signed in to change notification settings

douglasmiranda/django-fine-uploader

Repository files navigation

Django Fine Uploader

Simple, Chunked and Concurrent uploads with Django + Fine Uploader

This is an alpha version.

We have a example project. Just git clone the django-fine-uploader repository and follow the instructions.

Quickstart

Install django_fine_uploader:

pip install django-fine-uploader

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'django_fine_uploader',
    ...
)

Add django_fine_uploader's URL patterns:

urlpatterns = [
    ...
    url(r'^fine-uploader/', include('django_fine_uploader.urls', namespace='django_fine_uploader')),
    ...
]

And finally your html file: copy from this gist. (too much html to put on our README)

Features

  • Widget provided for overriding the FileField

Settings

If you would like to use the Fineuploader in FileField you could create the forms.FileField and set the widget=FineUploaderWidget. It also supports some attrs for extra settings. Currently it support the following settings.

widget=FineUploaderWidget(attrs={
  'admin': True # To show the widget in Admin panel.
  'itemLimit': 2 # Set the item limit in the FineUploader.
})

TODO

Instead of listing here, check the issues and projects.

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

OR

make test

Credits

Tools used in rendering this package:

Fineuploader: http://fineuploader.com