3 declare(strict_types=1);
25 $factory = $DIC->ui()->factory();
27 $request = $DIC->http()->request();
28 $wrapper = $DIC->http()->wrapper()->query();
30 $submit_flag =
'dropzone_standard_base';
31 $post_url =
"{$request->getUri()}&$submit_flag";
34 ->dropzone()->file()->standard(
35 'Upload your files here',
36 'Drag files in here to upload them!',
38 $factory->input()->field()->file(
43 $factory->button()->shy(
'Upload files',
'#')
48 if ($wrapper->has($submit_flag)) {
49 $dropzone = $dropzone->withRequest($request);
50 $data = $dropzone->getData();
52 $data =
'no results yet.';
55 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...
base()
description: > Example for rendering a file dropzone.