How to save images on the server using Django

2024-08-26 0

The saving of files on the server with Django is very simple. We just need to call the default_storage instance of the django.core.files.storage module and use the method save to save the files.

In settings.py we need to specify for MEDIA_ROOT where will be saved the files.