OnlineMediaController

Class OnlineMediaController handles uploading online media

Internal

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
ResponseInterface

mainAction()

Process add media request, and redirects to the previous page

public mainAction(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Tags
throws
RuntimeException
Return values
ResponseInterface

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|null

        
On this page

Search results