File length validation for task order upload

This commit is contained in:
dandds
2019-06-06 13:04:39 -04:00
parent f5e208ccc5
commit 318257e32c
4 changed files with 28 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ class CSPFileError(Exception):
class FileProviderInterface:
_PERMITTED_MIMETYPES = ["application/pdf", "image/png"]
_PERMITTED_MIMETYPES = ["application/pdf"]
def _enforce_mimetype(self, fyle):
# TODO: for hardening, we should probably use a better library for