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.6.tar.gz (68.8 kB view details)

Uploaded Source

Built Distribution

django_storages_s3upload-0.1.6-py27-none-any.whl (72.8 kB view details)

Uploaded Python 2.7

File details

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

File metadata

File hashes

Hashes for django-storages-s3upload-0.1.6.tar.gz
Algorithm Hash digest
SHA256 1066896e68ec50afc8601db8ffab66a31968e2da616ac770a3301f48b2045701
MD5 0c060531e7c4aa6805f82aaeda52e76b
BLAKE2b-256 522275ab297074d1be69b57a22cbfc25baba52d4511a82a3ee135174ec04295d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for django_storages_s3upload-0.1.6-py27-none-any.whl
Algorithm Hash digest
SHA256 1197f6e8ce1e6b3354357892986c565b405b2f2ae0cb28dc2658dbafb1e3f3a5
MD5 2fa0b7cd1cfb1b45bca9f400f55af289
BLAKE2b-256 7c46e10dacabe2312d7c63ab73ae709ba754503fd9480b940d63b2d60718ac4a

See more details on using hashes here.

Provenance

Supported by

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