Django-private-storage

Latest version: v3.1.1

Safety actively analyzes 630169 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

2.2

---------------------------

* Added efficient ``HEAD`` request handling. (Already in 2.2a1 at 2018-11-22)

2.1.3

-----------------------------

* Fixed spelling error in "file too large" error.
* Fixed compatibility with latest django-storages_ which removed the ``strict`` setting keyword.

2.1.2

-----------------------------

* Fixed ``PrivateFile.exists()`` check for ``<FieldFile: None>`` values.
* Added ``PrivateFile.__repr__()``

2.1.1

-----------------------------

* Fixed ``X-Accel-Redirect`` non-ASCII filename encoding in Nginx.

* For very old Nginx versions, you'll have to configure ``PRIVATE_STORAGE_NGINX_VERSION``,
because Nginx versions before 1.5.9 (released in 2014) handle non-ASCII filenames differently.

2.1

---------------------------

* Added ``serve_file_not_found()`` to allow custom 404 serving in ``PrivateStorageView`` and ``PrivateStorageDetailView``.
* Added ``Cache-Control`` headers to avoid caching private files in edge proxies.
* Fixed ``PrivateStorageDetailView`` to use using the custom storage class defined in the model's ``PrivateFileField``.
* Fixed ``Content-Disposition`` filename encoding in Python 3.
* Fixed ``Content-Disposition`` filename support for old Internet Explorer browsers.

2.0

---------------------------

* Added Django 2.0 support.
* Support ``upload_to`` parameter and callable.
* Support ``upload_subfolder`` to return a string instead of list.
* Dropped Django 1.7 compatibility

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.