Skip to content

Commit

Permalink
Disable file upload without JS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan committed Apr 10, 2023
1 parent eea3d4e commit 488a390
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 488a390

Please sign in to comment.