3declare(strict_types=1);
44 $this->definition =
$DIC[
'objDefinition'];
46 $this->
access = $DIC->access();
47 $this->
ctrl = $DIC->ctrl();
48 $this->
ui = $DIC->ui();
55 public function getDropzone(): FileDropzone
57 $this->
ctrl->setParameterByClass(
62 $this->
ctrl->setParameterByClass(
67 $this->
ctrl->setParameterByClass(
74 $post_url = $this->
ctrl->getFormActionByClass(
75 [ilRepositoryGUI::class, ilObjFileGUI::class],
79 $this->
ctrl->clearParameterByClass(ilObjFileGUI::class,
'new_type');
82 $dropzone = $this->
ui->factory()->dropzone()->file()->wrapper(
83 $this->
language->txt(
'upload_files'),
85 $this->ui->factory()->legacy($this->content ??
''),
86 $this->ui->factory()->input()->field()->file(
87 $this->upload_handler,
88 $this->language->txt(
'files'),
90 $this->ui->factory()->input()->field()->group([
92 $this->language->txt(
'title')
95 $this->language->txt(
'description')
103 )->withSubmitCaption(
104 $this->
language->txt(
'upload_files')
112 if ($this->definition->isContainer($obj_type) && $obj_type !==
"orgu") {
113 return $this->
access->checkAccess(
'create_file',
'', $this->target_ref_id,
'file');
121 return $this->
ui->renderer()->render($this->getDropzone());
Provides fluid interface to RBAC services.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getUploadSizeLimitBytes()
const UPLOAD_ORIGIN_DROPZONE
const PARAM_UPLOAD_ORIGIN
ilObjectDefinition $definition
isUploadAllowed(string $obj_type)
__construct(int $target_ref_id, string $content=null)
UploadHandler $upload_handler
parses the objects.xml it handles the xml-description of all ilias objects
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...