0

I have created a custom composite element, I want to include "File upload" field...The field is visible to the user and the file is uploaded. But it is nowhere saved.

1 Answer 1

1

Depends on the destination folder. This webform FAQ might help you.

Edit: Webform Composite Elements do not support File elements yet. Reference on drupal here

Follow these issues (active as of 6/20/2017) to find release updates- https://www.drupal.org/node/2883734 , https://www.drupal.org/node/2884624

3
  • I have tried that, it didn't work. I have created a custom composite element $elements['transcripts'] = [ '#type' => 'file', '#title' => t('transcripts'), '#multiple' => TRUE, ]; This is my code for the file upload.
    – SAY
    Commented Jun 8, 2017 at 21:39
  • Composite Elements doesn't support file elements.
    – SAY
    Commented Jun 20, 2017 at 16:42
  • 1
    @SAY True! doesn't support #multiple too.
    – dharma
    Commented Jun 20, 2017 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.