3 declare(strict_types=1);
    22     $factory = $DIC->ui()->factory();
    24     $request = $DIC->http()->request();
    25     $wrapper = $DIC->http()->wrapper()->query();
    27     $submit_flag = 
'dropzone_wrapper_with_additional_input';
    28     $post_url = 
"{$request->getUri()}&$submit_flag";
    31         ->dropzone()->file()->wrapper(
    32             'Upload your files here',
    34             $factory->messageBox()->info(
'Drag and drop files onto me!'),
    35             $factory->input()->field()->file(
    39             $factory->input()->field()->text(
    41                 'Additional input which affects all files of this upload.'    47     if ($wrapper->has($submit_flag)) {
    48         $dropzone = $dropzone->withRequest($request);
    49         $data = $dropzone->getData();
    51         $data = 
'no results yet.';
    54     return '<pre>' . print_r(
$data, 
true) . 
'</pre>' .
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
with_additional_input()
 description: > Example for rendering a file dropzone wrapper with additional input.