File system storage with support of international file names and same file names.
For example:
You can upload to your server files with russian or turkish names. Such files will be urlified.
Документ 1.doc
becomesdocument_1.doc
You can upload files with same names. Such files will have names with different random hex postfixes.
Different files
1.png
and1.png
becomes1.png
and1_1BAC45.png
rather than1.png
and1_.png
in Django default filestorage
Put
hex_storage
to yourINSTALLED_APPS
in yoursettings.py
within your django project. :INSTALLED_APPS = [ ... 'hex_storage', ... ]
Set your default file storage in your
settings.py
:DEFAULT_FILE_STORAGE = 'hex_storage.HexFileSystemStorage'