LPS-31916 We need to use Files instead of inputStream so that the antivirus can check them