HCSVLAB-719: Added validation to the file parameter to ensure it is an UploadedFile.
HCSVLAB-719: Added permission validation.