{"repo":"codingjoe/django-s3file","free":true,"listed":false,"github":"https://github.com/codingjoe/django-s3file","clone":"git clone https://github.com/codingjoe/django-s3file.git","description":"A lightweight file upload input for Django and Amazon S3","language":"Python","stars":96,"topics":["django","aws","s3","django-storages","aws-s3","amazon","files","storage","heroku","heroku-deployment"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Documentation Issues Changelog Funding 💚 django-s3file A lightweight file upload input for Django and Amazon S3. Django-S3File allows you to upload files directly AWS S3 effectively bypassing your application server. This allows you to avoid long running requests from large file uploads. This is particularly helpful for if you run your service on AWS Lambda or Heroku where you have a hard request limit. Sponsors Features - lightweight: less 200 lines - no JavaScript or Python dependencies (no jQuery) - easy integration - works just like the built-in - extendable JavaScript API For the Nerds In a nutshell, we can bypass Django completely and have AWS handle the upload or any processing. Of course, if you want to do something with your file in Django, you can do so, just like before, with the added advantage, that your file is served from within your datacenter. Installation Make sure you have Amazon S3 storage setup correctly. Just install S3file using pip . Add the S3File app and middleware in your settings: Usage S3File automatically replaces Django's ClearableFileInput widget, you do not need to alter your code at all. The ClearableFileInput widget is only than automatically replaced when the STORAGES[\"default\"] setting is set to django-storages ' S3Boto3Storage or the dummy FileSystemStorage is enabled. Setting up the AWS S3 bucket Upload folder S3File uploads to a single folder. Files are later moved by Django when they are saved to the upload to location. It is recommen","default_branch":null,"files":null,"tree":[],"storefront":"/r/codingjoe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/codingjoe/django-s3file/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}