Skip to main content

Direct (client-side) HTTP POST file upload to S3 using Django forms/views.

Project description

Direct (client-side) HTTP POST file upload to S3 using Django forms/views.

This project is under development, and so should be used in production environments with a high degree of caution.

Docs: http://django-storages-s3upload.readthedocs.org/

Please be VERY careful with security considerations, and check you know exactly what is happening. S3 HTTP POST upload will overwrite existing files if the key matches. You will want to limit uploads to trusted users, and use unique key prefixes. You will want to make sure that any processing of uploaded files is safe.

See also: https://docs.djangoproject.com/en/dev/topics/security/#user-uploaded-content

Features

  • Create signed forms for client-side uploading of files directly in to Amazon S3 buckets using HTTP POST: http://docs.aws.amazon.com/AmazonS3/latest/dev/HTTPPOSTForms.html

  • A view to handle/validate the returned parameters from the upload, and a hook to process the uploaded file.

  • An extended form/view which uses dropzone.js for handling multiple uploads with thumbnails and progress bars.

Requirements

You’ll need to set-up & configure an Amazon S3 Boto storage backend using django-storages: http://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html

Installation

Install django-storages-s3upload by running:

pip install django-storages-s3upload

Contribute

License

The project is licensed under the Apache license 2.0.

Project details


Download files

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

Source Distribution

django-storages-s3upload-0.1.5.tar.gz (68.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_storages_s3upload-0.1.5-py27-none-any.whl (72.5 kB view details)

Uploaded Python 2.7

File details

Details for the file django-storages-s3upload-0.1.5.tar.gz.

File metadata

File hashes

Hashes for django-storages-s3upload-0.1.5.tar.gz
Algorithm Hash digest
SHA256 4c94305bf8c82a333adf8cd9dfaedec8536fbf2a604dcba2e0a9ae3ca51f8ec2
MD5 3afb84fb8f5a2ee97fd97477420a3a40
BLAKE2b-256 de1f60f64763340d554602485b763abad4a9e8b8519d8b514f0389f3fa29adbb

See more details on using hashes here.

File details

Details for the file django_storages_s3upload-0.1.5-py27-none-any.whl.

File metadata

File hashes

Hashes for django_storages_s3upload-0.1.5-py27-none-any.whl
Algorithm Hash digest
SHA256 41218434a9c9b52aa8ecec23891064ad90d2f27c882af6c7ac746f63736ee042
MD5 d1c8f3cc6db4792fb782bd297328030e
BLAKE2b-256 ca7eb8f0567b8aaf65505d9a6bc2477c2fc64ce405a063628b1bb7cc53a5a8c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page