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.
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)
- Simple Upload
- Chunked Upload
- Concurrent Chunked Upload
- Ready to use upload endpoint
- Easy extend FineUploaderView (FormView)
- Or create your custom view and use the Django Fine Uploader handler
- Widget provided for overriding the FileField
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.
})
Instead of listing here, check the issues and projects.
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
OR
make test
Tools used in rendering this package:
Fineuploader: http://fineuploader.com