OnlineMediaController
Class OnlineMediaController handles uploading online media
This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Methods
- createAction() : ResponseInterface
- AJAX endpoint for storing the URL as a sys_file record
- mainAction() : ResponseInterface
- Process add media request, and redirects to the previous page
- addFlashMessage() : mixed
- Add flash message to message queue
- addMediaFromUrl() : File|null
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService
Methods
createAction()
AJAX endpoint for storing the URL as a sys_file record
public
createAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacemainAction()
Process add media request, and redirects to the previous page
public
mainAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Tags
Return values
ResponseInterfaceaddFlashMessage()
Add flash message to message queue
protected
addFlashMessage(FlashMessage $flashMessage) : mixed
Parameters
- $flashMessage : FlashMessage
addMediaFromUrl()
protected
addMediaFromUrl(string $url, string $targetFolderIdentifier[, array<string|int, string> $allowedExtensions = [] ]) : File|null
Parameters
- $url : string
- $targetFolderIdentifier : string
- $allowedExtensions : array<string|int, string> = []
Return values
File|nullgetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService