Commit d020b5b6 `Add validation for uploded file` breaks file uploads
Commit d020b5b6 Add validation for uploded file
breaks file uploads (I verified this by reverting the commit in question, which resolved our issue of not being able to upload files).
Also, besides causing that issue, I also think that this commit is not really the proper way to solve the problem that it is supposed to solve - file names should be checked and files with a forbidden name rejected before that file is stored in the S3 bucket, not afterwards.