Document Upload Container
Overview
This component is used to render file upload UI based on the configuration passed for each module.
Workflow Details
Upload File Component - It has a title, information banner with a relevant message, document name, and corresponding file input to upload doc. All these details can be configured via MDMS.
MDMS Configurations
This component fetches below MDMS configuration by filtering modules to render the relevant UI.
Using The Component
If a new module is being added then the corresponding config should be updated in MDMS before using this component in the below format. (refer to Project module config below)
To show this in form, the config with type ‘documentUpload’ needs to be passed to FormComposer. (refer to below config)
Once these two configurations are added, the upload component will become visible within the form. Upon clicking the submit button, it will capture the data in the format specified below, which can then be modified in accordance with the API contract for each module.
Last updated