FileUploadController
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.
Table of Contents
Properties
- $content : string
- Accumulating content
- $folderObject : File|Folder|null
- The folder object which is the target directory for the upload
- $iconFactory : IconFactory
- $moduleTemplate : ModuleTemplate
- ModuleTemplate object
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageRenderer : PageRenderer
- $resourceFactory : ResourceFactory
- $returnUrl : string
- Return URL of list module.
- $target : string
- Set with the target path inputted in &target
- $uriBuilder : UriBuilder
Methods
- __construct() : mixed
- mainAction() : ResponseInterface
- Processes the request, currently everything is handled and put together via "renderContent()"
- getLanguageService() : LanguageService
- init() : void
- Initialize
- renderContent() : void
- Render module content
- renderUploadFormInternal() : string
- This function renders the upload form
Properties
$content
Accumulating content
protected
string
$content
$folderObject
The folder object which is the target directory for the upload
protected
File|Folder|null
$folderObject
$iconFactory
protected
IconFactory
$iconFactory
$moduleTemplate
ModuleTemplate object
protected
ModuleTemplate
$moduleTemplate
$moduleTemplateFactory
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageRenderer
protected
PageRenderer
$pageRenderer
$resourceFactory
protected
ResourceFactory
$resourceFactory
$returnUrl
Return URL of list module.
protected
string
$returnUrl
$target
Set with the target path inputted in &target
protected
string
$target
$uriBuilder
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(IconFactory $iconFactory, PageRenderer $pageRenderer, UriBuilder $uriBuilder, ResourceFactory $resourceFactory, ModuleTemplateFactory $moduleTemplateFactory) : mixed
Parameters
- $iconFactory : IconFactory
- $pageRenderer : PageRenderer
- $uriBuilder : UriBuilder
- $resourceFactory : ResourceFactory
- $moduleTemplateFactory : ModuleTemplateFactory
mainAction()
Processes the request, currently everything is handled and put together via "renderContent()"
public
mainAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
-
the current request
Return values
ResponseInterface —the response with the content
getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServiceinit()
Initialize
protected
init(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface
Tags
renderContent()
Render module content
protected
renderContent() : void
renderUploadFormInternal()
This function renders the upload form
protected
renderUploadFormInternal() : string
Return values
string —The HTML form as a string, ready for outputting