Class UploadVerificationBean

    • Constructor Detail

      • UploadVerificationBean

        public UploadVerificationBean()
    • Method Detail

      • isUnsafe

        public boolean isUnsafe​(org.primefaces.model.file.UploadedFile uploadedFile,
                                UserPortalViewContext userPortalViewCtx,
                                FormRecordModel formRecordModel)
        Checks whether the provided upload file has been classified as 'unsafe' by upstream checks (e.g. malware detection or content type verification). As usual, unsafe uploads are logged (Mandant protocol).
        Specified by:
        isUnsafe in interface IUploadVerificationBean
        Parameters:
        uploadedFile - the uploaded file to be checked
        userPortalViewCtx - the user portal's view context
        formRecordModel - the related form record data
        Returns:
        true if the upload file is not safe, otherwise false.