‪TYPO3CMS  11.5
TYPO3\CMS\Filelist\Controller\File\FileUploadController Class Reference

Public Member Functions

 __construct (IconFactory $iconFactory, PageRenderer $pageRenderer, UriBuilder $uriBuilder, ResourceFactory $resourceFactory, ModuleTemplateFactory $moduleTemplateFactory)
 
ResponseInterface mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 init (ServerRequestInterface $request)
 
 renderContent ()
 
string renderUploadFormInternal ()
 
LanguageService getLanguageService ()
 

Protected Attributes

string $target
 
string $returnUrl
 
string $content
 
File Folder null $folderObject
 
ModuleTemplate $moduleTemplate
 
IconFactory $iconFactory
 
PageRenderer $pageRenderer
 
UriBuilder $uriBuilder
 
ResourceFactory $resourceFactory
 
ModuleTemplateFactory $moduleTemplateFactory
 

Detailed Description

Script Class for display up to 10 upload fields

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 40 of file FileUploadController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ getLanguageService()

◆ init()

TYPO3\CMS\Filelist\Controller\File\FileUploadController::init ( ServerRequestInterface  $request)
protected

Initialize

Parameters
ServerRequestInterface$request
Exceptions
InsufficientFolderAccessPermissionsException

Definition at line 113 of file FileUploadController.php.

References TYPO3\CMS\Filelist\Controller\File\FileUploadController\getLanguageService(), and TYPO3\CMS\Core\Localization\LanguageService\sL().

Referenced by TYPO3\CMS\Filelist\Controller\File\FileUploadController\mainAction().

◆ mainAction()

ResponseInterface TYPO3\CMS\Filelist\Controller\File\FileUploadController::mainAction ( ServerRequestInterface  $request)

Processes the request, currently everything is handled and put together via "renderContent()"

Parameters
ServerRequestInterface$request‪the current request
Returns
‪ResponseInterface the response with the content

Definition at line 98 of file FileUploadController.php.

References TYPO3\CMS\Filelist\Controller\File\FileUploadController\getLanguageService(), TYPO3\CMS\Core\Localization\LanguageService\includeLLFile(), TYPO3\CMS\Filelist\Controller\File\FileUploadController\init(), and TYPO3\CMS\Filelist\Controller\File\FileUploadController\renderContent().

◆ renderContent()

◆ renderUploadFormInternal()

string TYPO3\CMS\Filelist\Controller\File\FileUploadController::renderUploadFormInternal ( )
protected

This function renders the upload form

Returns
‪string The HTML form as a string, ready for outputting

Definition at line 196 of file FileUploadController.php.

References TYPO3\CMS\Filelist\Controller\File\FileUploadController\$content, and TYPO3\CMS\Filelist\Controller\File\FileUploadController\getLanguageService().

Referenced by TYPO3\CMS\Filelist\Controller\File\FileUploadController\renderContent().

Member Data Documentation

◆ $content

string TYPO3\CMS\Filelist\Controller\File\FileUploadController::$content
protected

◆ $folderObject

File Folder null TYPO3\CMS\Filelist\Controller\File\FileUploadController::$folderObject
protected

The folder object which is the target directory for the upload

Definition at line 64 of file FileUploadController.php.

◆ $iconFactory

IconFactory TYPO3\CMS\Filelist\Controller\File\FileUploadController::$iconFactory
protected

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Filelist\Controller\File\FileUploadController::$moduleTemplate
protected

ModuleTemplate object

Definition at line 70 of file FileUploadController.php.

◆ $moduleTemplateFactory

ModuleTemplateFactory TYPO3\CMS\Filelist\Controller\File\FileUploadController::$moduleTemplateFactory
protected

◆ $pageRenderer

PageRenderer TYPO3\CMS\Filelist\Controller\File\FileUploadController::$pageRenderer
protected

◆ $resourceFactory

ResourceFactory TYPO3\CMS\Filelist\Controller\File\FileUploadController::$resourceFactory
protected

◆ $returnUrl

string TYPO3\CMS\Filelist\Controller\File\FileUploadController::$returnUrl
protected

Return URL of list module.

Definition at line 52 of file FileUploadController.php.

◆ $target

string TYPO3\CMS\Filelist\Controller\File\FileUploadController::$target
protected

Set with the target path inputted in &target

Definition at line 46 of file FileUploadController.php.

◆ $uriBuilder

UriBuilder TYPO3\CMS\Filelist\Controller\File\FileUploadController::$uriBuilder
protected