Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Django resumable uploads

Project description


Build Status

django-resumable provides django backend stuff that handles resumable.js xhr uploads.


  • pip install django-resumable
  • Add resumable to your INSTALLED_APPS


In order to upload files asynchronous, you must define an endpoint that will deal with uploaded file chunks:

from django.contrib.auth.decorators import login_required

from resumable.views import ResumableUploadView

urlpatterns += patterns('',
    url('^upload/$', login_required(ResumableUploadView.as_view()),

You should also consider having per user chunk upload directory:

class MyResumableUploadView(ResumableUploadView):
    def chunks_dir(self):
        return self.request.user.profile.chunks_dir


If you want to handle resumable upload within your forms, you can use the ResumableFileField that works like django core FileField:

from django.conf import settings
from django.core.urlresolvers import reverse

from resumable.fields import ResumableFileField

class ResumableForm(Form):
    file = ResumableFileField(
        upload_url=lambda: reverse('upload'),
        chunks_dir=getattr(settings, 'FILE_UPLOAD_TEMP_DIR')


django-resumable comes with extendable frontend scripts that work out of the box:

{% load staticfiles %}
<!DOCTYPE html>
        <form method="post" action=".">
                {% csrf_token %}
                {{ form.as_p }}
            <p><input type="submit" value="send" /></p>
        <script type="text/javascript" src=""></script>
        <script type="text/javascript" src="{% static 'resumable/js/django-resumable.js' %}"></script>
        <script type="text/javascript" src="{% static 'resumable/js/init.js' %}"></script>

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-resumable-0.2.0.tar.gz (17.2 kB) Copy SHA256 hash SHA256 Source None Apr 19, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page