iamsumesh
iamsumesh

Reputation: 656

File upload element is not listing in Drupal 10 Webform

i am creating a form in Drupal 10 using Webform. i am able add elements like "Textfield", "TextArea" etc. When i try to add "File upload", nothing is listing. Please find the attachment for the screenshot. Please help to fix this and add file upload field in the form.enter image description here

Upvotes: 0

Views: 399

Answers (2)

Muhammad Asim Dewan
Muhammad Asim Dewan

Reputation: 1

I set path for private files in : $settings['file_private_path']

clear cache with :

./vendor/bin/drush cr

Then I can see options to upload files on webform build.

Upvotes: 0

Hydro
Hydro

Reputation: 21

Do you have init the $settings['file_private_path'] in the right settings.php ? And clear drupal cache ?

You can also verify in "/admin/structure/webform/config/elements/" if the file element is available

Upvotes: 1

Related Questions