I have a custom form created with Form API. In this form, I have a file field with the type managed_file $form[‘fichiers_justificatif’] = array( ‘#type’ => ‘managed_file’, ‘#title’ => ‘justificatifs’, ‘#upload_validators’ => $validators, ‘#upload_location’ => ‘private://justificatifs’, ‘#multiple’ => TRUE, ‘#description’ => ‘types de fichier autorisés : png gif jpg jpeg pdf doc’, ); It works […]
- Tags '#description' => 'types de fichier autorisés : png gif jpg jpeg pdf doc', '#title' => 'justificatifs', '#upload_location' => 'private://justificatifs', '#upload_validators' => $validators, but I have an Ajax error after the 2nd file is submitted. I’ve tried this module Multi-value form element but still have AJAX issue. I’ve t, get its name and url. But I don’t know how to have a multiple file upload like the one with see in admin or with the webform module. Exampl, I can upload a file, I have a custom form created with Form API. In this form, I have a file field with the type managed_file $form['fichiers_justificatif'] = array( '#type' => 'managed_file', it works well, multiple = TRUE