45 $this->object_id = $file->
create();
53 $title = $post_data[
'title'];
54 $description = $post_data[
'description'];
57 $file->setDescription($description);
59 $response->fileName = $file->getFileName();
60 $response->fileSize = $file->getFileSize();
61 $response->fileType = $file->getFileType();
63 $this->uploaded_suffixes[] = $file->getFileExtension();
64 }
catch (Exception
$e) {
74 return array_map(
'strtolower', $this->uploaded_suffixes);
An exception for terminatinating execution or to throw for unit testing.
GUI class for file objects.
Class ilObjFileSingleFileDelegate.
handle(int $parent_id, array $post_data, UploadResult $result, ilObjFileGUI $gui)
Class ilObjFileUploadResponse.
putObjectInTree(ilObject $a_obj, $a_parent_node_id=null)
Add object to tree at given position.
create($a_clone_mode=false)
Interface ilObjUploadDelegateInterface.