Added additional check on the file path in FileUpload