45 $this->file = $existing_file;
46 $this->upload_mode = $this->
http->wrapper()->query()->has(self::P_UPLOAD_MODE)
47 ? $this->
http->wrapper()->query()->retrieve(self::P_UPLOAD_MODE, $DIC->refinery()->kindlyTo()->string())
50 $this->
ctrl->setParameter($this, self::P_UPLOAD_MODE, $this->upload_mode);
59 $result_array = $this->
upload->getResults();
60 $result = end($result_array);
63 if ($this->upload_mode === self::MODE_REPLACE) {
64 $identifier = (string) $this->file->replaceWithUpload($result, $result->getName());
66 $identifier = (string) $this->file->appendUpload($result, $result->getName());
68 $status = HandlerResult::STATUS_OK;
72 $status = HandlerResult::STATUS_FAILED;
73 $message = $result->getStatus()->getMessage();
Class ilObjFileStakeholder.
__construct(ilObjFile $existing_file, string $upload_mode=self::MODE_APPEND)
static http()
Fetches the global http state from ILIAS.
Class ilFileVersionsUploadHandlerGUI.
Class BasicHandlerResult.
Class ilCtrlAwareStorageUploadHandler.
getFileIdentifierParameterName()
__construct(Container $dic, ilPlugin $plugin)
Class ilCountPDFPagesPreProcessors.