Commit 9861c56c authored by blacksnipe's avatar blacksnipe Committed by jungle

Issue #3164379 by blacksnipe: At least one valid file should be uploaded

parent de0eabaa
......@@ -171,6 +171,8 @@ class DropzoneJs extends FormElement {
$file_names = array_filter(explode(';', $user_input['uploaded_files']));
$tmp_upload_scheme = \Drupal::configFactory()->get('dropzonejs.settings')->get('tmp_upload_scheme');
$file_names = explode(',', $file_names[0]);
foreach ($file_names as $name) {
// The upload handler appended the txt extension to the file for
// security reasons. We will remove it in this callback.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment