Drupal 9 Webform: Enabling File element in webform.
Oct 25, 2022
In this article, you will learn how to enable the webform file element and its public file upload locations.
Step 1: Navigate from Structure->Webforms->Confriguation->Elements
Step 2: In File Upload Setting, Check Allow files to be uploaded to the public file system.
Step 3: Define the default maximum file upload size.
Step: 4 Go to web forms and add a file element (that will be visible now).
Step: 5 Check public files from File Settings, enter maximum file size, allowed extensions, etc according to requirements.