Skip to main content

django-async-upload

Based on fork from https://github.com/bit/django-async-upload. Allows install via pip:

pip install django-async-upload-kg

django-async-upload is a django app to allow you to upload large files from within the django admin site asynchrously, that means that you can add any number of files on the admin page (e.g. through inline models) and continue editing other fields while files are uploading.

django-async-upload is compatible with django-storages (tested with S3Storage)

Installation

  • pip install django-async-upload

  • Add admin_async_upload to your INSTALLED_APPS

  • Add url(r'^admin_async_upload/', include('admin_async_upload.urls')), to your urls.py

  • Add a model field eg: from admin_resumable.models import ResumableFileField

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

Optionally:

  • Set ADMIN_RESUMABLE_CHUNKSIZE, default is "1*1024*1024"

  • Set ADMIN_RESUMABLE_STORAGE, default is setting of DEFAULT_FILE_STORAGE and ultimately 'django.core.files.storage.FileSystemStorage'. 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_CHUNK_STORAGE, default is 'django.core.files.storage.FileSystemStorage' . 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.

  • Set ADMIN_SIMULTANEOUS_UPLOADS to limit number of simulteneous uploads, dedaults to 3. If you have broken pipe issues in local development environment, set this value to 1.

Versions

4.0.5 - Django 5.1 support 4.0.0 - inital fork of django-admin-async-upload 3.0.4 with support for Django 4 and later

Compatibility

Tested on Django 4.x and 5.1 running on python 3.10 and 3.11

Thanks to

original django-admin-resumable-js by jonatron https://github.com/jonatron/django-admin-resumable-js

django-admin-resumable-js fork by roxel https://github.com/roxel/django-admin-resumable-js

django-admin-async-upload fork by DataGreed https://github.com/DataGreed/django-admin-async-upload

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

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

Metadata

Release files for django-async-upload-kg 4.0.6

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

Built distribution (wheel)

Table of built distributions (wheels) for django-async-upload-kg 4.0.6
File Interpreter ABI Platform
django_async_upload_kg-4.0.6-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / django_async_upload_kg-4.0.6-py2.py3-none-any.whl

Download URL django_async_upload_kg-4.0.6-py2.py3-none-any.whl
Size 22.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3d7c686ee58968ef03646f36ce142d46a6782e07ad26498d34c95fdcfcc6c875
BLAKE2b-256 checksum
How to use checksums
530fee1a9f21244f3e61d8d35d55b9c16b99e44d07f12ff897631f849e99f63b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

4.0.6 This release

1 release file

4.0.5

1 release file

4.0.4

1 release file

4.0.1

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