[SalesForce] How to make lightning:fileUpload component required field on flows

I am using lightning:fileUpload component in flows embedded on community page. I want to make this mandatory/ required so that the user sees an error if they click next without uploading a file. I have tried creating a custom footer component and passing attributes from file upload component to validate but not sure how I can display error. Is there any other way to make lightning:fileUpload required in flows ? Thank you.

Best Answer

I've used a workaround that uses a "Decision" if there is no file attached. If the file ID I am passing through is blank, I have it show a screen that informs them a file is required and then takes them back to the file upload. Hoping they will come out with a way to do this without the workaround!