35 use \ILIAS\Modules\OrgUnit\ARHelper\DIC;
79 parent::__construct($a_title, $a_postvar);
173 $f = $this->ui()->factory();
174 $r = $this->ui()->renderer();
178 $dropzone =
$f->dropzone()
187 $dropzone = $dropzone->withUserDefinedFileNamesEnabled(
true);
190 $render =
$r->render($dropzone);
193 $out =
"<div id='ilFileStandardDropzoneInputGUIWrapper{$n}'>" . $render .
'</div>';
196 $this->ui()->mainTemplate()->addJavaScript(
'./Services/Form/js/ilFileStandardDropzoneInputGUI.js');
197 $this->ui()->mainTemplate()->addOnLoadCode(
"ilFileStandardDropzoneInputGUI.init('ilFileStandardDropzoneInputGUIWrapper{$n}', '{$this->cancel_command}');");
208 $hasUploads = $this->dic()->upload()->hasUploads();
230 $parentWrapper = $this;
231 while (!$parentWrapper instanceof
ilPropertyFormGUI && $parentWrapper !== null) {
232 $parentWrapper = $parentWrapper->getParent();
235 $str_replace = str_replace(
"&",
"&", $parentWrapper->getFormAction());
236 $this->
setUploadUrl($str_replace .
"&" . self::ASYNC_FILEUPLOAD .
"=true");
257 $dropzone = $dropzone->withFileSizeLimit($this->
getMaxFilesize());