Skip to main content
django-admin-resumable-js
=========================

.. image:: https://api.travis-ci.org/jonatron/django-admin-resumable-js.svg?branch=master
:target: https://travis-ci.org/jonatron/django-admin-resumable-js

django-admin-resumable-js is a django app to allow you to upload large files from within the django admin site.

Screenshot
----------

.. image:: https://github.com/jonatron/django-admin-resumable-js/raw/master/screenshot.png?raw=true


Installation
------------

* pip install django-admin-resumable-js
* Add ``admin_resumable`` to your ``INSTALLED_APPS``
* Add ``url(r'^admin_resumable/', include('admin_resumable.urls')),`` to your urls.py
* Add a model field eg: ``from admin_resumable.fields import ModelAdminResumableFileField``

::

class Foo(models.Model):
bar = models.CharField(max_length=200)
foo = ModelAdminResumableFileField()



Optionally:

* Set ``ADMIN_RESUMABLE_SUBDIR``, default is ``'admin_uploaded'``
* Use upload_to instead of ADMIN_RESUMABLE_SUBDIR
* Set ``ADMIN_RESUMABLE_CHUNKSIZE``, default is ``"1*1024*1024"``
* Set ``ADMIN_RESUMABLE_STORAGE``, default is ``'django.core.files.storage.FileSystemStorage'`` (must be a subclass of ``django.core.files.storage.FileSystemStorage``, or accept the ``location`` init parameter). If you don't want the default FileSystemStorage behaviour of creating new files on the server with filenames appended with _1, _2, etc for consecutive uploads of the same file, then you could use this to set your storage class to something like https://djangosnippets.org/snippets/976/
* Set ``ADMIN_RESUMABLE_SHOW_THUMB``, default is False. Shows a thumbnail next to the "Currently:" link.


Versions
--------

1.0: First PyPI release

1.1: Bug fix [1]

1.2: Django 1.9 Compatibility

2.0: Added upload_to


[1] Django silently truncates incomplete chunks, due to the way the multipart
parser works: https://github.com/django/django/blob/master/django/http/multipartparser.py
This could result in a file being unable to be uploaded, or a corrupt file,
depending on the situation.


Compatibility
-------------

1.2:
{py27,py32,py33,py34,py35}-django{1.6,1.7,1.8,1.9}.
python 3.2 and 3.3 supported up to django 1.8.

2.0:
{py27,py34,py35}-django{1.8,1.9,1.10,1.11}

3.0:
{py27,py35,py36,py37}-django{1.11,2.0,2.1}
python 2.7 supported up to django 1.11


Running Tests Locally
-------------

Incomplete notes
[on ubuntu]

sudo apt-get install python3-venv
python3 -m venv venv
source venv/bin/activate
pip install pytest
pip install tox
tox

Thanks to
---------

Resumable.js https://github.com/23/resumable.js

django-resumable https://github.com/jeanphix/django-resumable

Release files for django-admin-resumable-js 3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-admin-resumable-js 3.0
File Size Uploaded
django-admin-resumable-js-3.0.tar.gz 15.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-admin-resumable-js 3.0
File Interpreter ABI Platform
django_admin_resumable_js-3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 33.4 kB

Release files / django-admin-resumable-js-3.0.tar.gz

Download URL django-admin-resumable-js-3.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
75ba9d17cff368f14a1a8e37e113fa5a049d0e5d916611588dd6d18e6beffcb9
BLAKE2b-256 checksum
How to use checksums
c41cb0e7aaff4e7019e1bf7f691419ec21dcf3f8f769ca5dd2ad9924e31fbf5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release files / django_admin_resumable_js-3.0-py2.py3-none-any.whl

Download URL django_admin_resumable_js-3.0-py2.py3-none-any.whl
Size 17.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
36a54aca78161d7d2564e4cdf7a47cf3c030e1fdf87da81fb85f23a02f177f10
BLAKE2b-256 checksum
How to use checksums
5bbf3aad00d822840a381bce49fed9bc4bd71e187d4cde154bdfa3b07b2bb7d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

3.0 This release

2 release files

2.0

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page