OnlineMediaController

class \TYPO3\CMS\Backend\Controller\OnlineMediaController

Class OnlineMediaController handles uploading online media

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[, string[] $allowedExtensions = [] ]) : File|null

Parameters

$url : string
$targetFolderIdentifier : string
$allowedExtensions : string[] = []

Return values

File|null
On this page