Uploading Files to AWS S3 with Python and Django
Introduction
In the quest to build more interactive websites, we don’t only relay information to users but also allow them to upload data of their own. This opens up more opportunities and more ways that our websites can serve the end-users.
By allowing users to upload files, we can allow them to share photographs, videos, or music with others or back them up for safekeeping. We can also provide the functionality to manage files and convert them into other formats through websites instead of installing native apps.
The rise of social media globally can be attributed to the ability of users to upload their files, mostly in the form of images and videos for other users to see and also as a means of communication. By enabling users to upload files to websites and platforms, means of communication have been enhanced and information can now be spread in very many different formats.
In this post, we will explore how Django handles file uploading and how we can tap into and extend this functionality with cloud storage to suit our needs.
How Django Handles File Storage
Django not only allows us to turn concepts into web applications but