I'm using Drupal 8 with Webform module.
I want to allow users to upload one or several files when filling the form. Is it possible with Drupal 8? May be some additional module required for this?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
You need to enable webform UI, then set in your sites/default/settings.php file the privates files directory path:
$settings['file_private_path'] = 'sites/default/files/private'; where 'sites/default/files/private' is your privates files directory path. You can choose another directory. And give to this directory the write permission. Then clear all caches. Now you can add files fied in your webform while adding new element. In the popup that appears, typing file, you will see all files type like image, audio, etc.