The Input FileUpload required Property is used to set or return whether a file in the file upload field must be selected/uploaded before submitting a form. This property reflects the HTML required attribute.
Return the required property:
Set the required property:
true: Return ‘true’ when the file upload field is required. false: It is the default value. It return ‘false’ when the file upload field is not required.
Return Value: A Boolean value that displays the status of file upload required field.
Please Login to comment...