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_standard_with_additional_input';
28 $post_url =
"{$request->getUri()}&$submit_flag";
31 ->dropzone()->file()->standard(
32 'Upload your files here',
33 'Drag files in here to upload them!',
35 $factory->input()->field()->file(
39 $factory->input()->field()->text(
41 'Additional input which affects all files of this upload.' 44 $factory->button()->shy(
'Upload files',
'#')
49 if ($wrapper->has($submit_flag)) {
50 $dropzone = $dropzone->withRequest($request);
51 $data = $dropzone->getData();
53 $data =
'no results yet.';
56 return '<pre>' . print_r(
$data,
true) .
'</pre>' .
with_additional_input()
description: > Example for rendering a standard file dropzone with additional input.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...