public function handleUploadify() { if (!$this->presenter->editAllowed()) { return; } $file = $this->httpRequest->getFile('Filedata'); if (!$file) { $this->presenter->sendResponse(new TextResponse("File not uploaded")); } FilesModel::upload($this->page->id, $file); $this->presenter->sendResponse(new TextResponse("Upload ok.")); }