Check uploaded file against blocklist
Uploaded files should go through all the checks to make sure we actually want the file to be stored and uploaded.
If files are on the blocklist - return a 403 (or maybe 402, so payment plan for uploading blocked files.
-
Reading and loading array from config -
Splitting up the uploaded file into filename
andextension
, comparing file ext to blocklist.