We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, Thank you so much for sharing this! This is exactly what I need :) I believe these lines are not necessary:
$form['#attributes'] = [ 'enctype' => 'multipart/form-data', ];
as it is automatically added to the form when we add a FormElement of type 'file' see https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21Element%21File.php/class/File/8.2.x "If you add this element to a form the enctype="multipart/form-data" attribute will automatically be added to the form element."
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
Thank you so much for sharing this! This is exactly what I need :)
I believe these lines are not necessary:
as it is automatically added to the form when we add a FormElement of type 'file'
see https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21Element%21File.php/class/File/8.2.x
"If you add this element to a form the enctype="multipart/form-data" attribute will automatically be added to the form element."
The text was updated successfully, but these errors were encountered: