From 488a39019485a39fb7b5d39c993f6f84cc6e57d1 Mon Sep 17 00:00:00 2001 From: Ivan Date: Tue, 11 Apr 2023 00:07:51 +0200 Subject: [PATCH] Disable file upload without JS --- CHANGELOG.md | 11 +++++++++++ accounts/views.py | 4 +--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 001671f..925952b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.0.38] - 2023-04-11 + +### Added + +- Check and display storage size [@AivGitHub](https://github.com/AivGitHub/). +- Disable file upload without JavaScript [@AivGitHub](https://github.com/AivGitHub/). + +### Fixed + +- Show actual upload size limit. + ## [0.0.37] - 2023-04-07 ### Added diff --git a/accounts/views.py b/accounts/views.py index 9bb7598..daf3fff 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -210,9 +210,7 @@ def get(self, request, *args, **kwargs): def upload(self, request): transfer_type = self._get_transfer_type(request.headers) - if transfer_type == TransferType.DEFAULT: - return self._default_upload(request) - elif transfer_type == TransferType.SIGNED_URL: + if transfer_type == TransferType.SIGNED_URL: return self._signed_url_upload(request) raise NotAllowed()