![]() |
TYPO3
7.6
|
Public Member Functions | |
createAction (ServerRequestInterface $request, ResponseInterface $response) | |
mainAction (ServerRequestInterface $request, ResponseInterface $response) | |
Protected Member Functions | |
addMediaFromUrl ($url, $targetFolderIdentifier, array $allowedExtensions=[]) | |
getBackendUser () | |
getLanguageService () | |
Class OnlineMediaController handles uploading online media
Definition at line 30 of file OnlineMediaController.php.
|
protected |
string | $url | |
string | $targetFolderIdentifier | |
string[] | $allowedExtensions |
Definition at line 115 of file OnlineMediaController.php.
References $url, OnlineMediaController\getBackendUser(), OnlineMediaHelperRegistry\getInstance(), and ResourceFactory\getInstance().
Referenced by OnlineMediaController\createAction(), and OnlineMediaController\mainAction().
createAction | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
AJAX endpoint for storing the URL as a sys_file record
ServerRequestInterface | $request | |
ResponseInterface | $response |
Definition at line 39 of file OnlineMediaController.php.
References $response, $url, OnlineMediaController\addMediaFromUrl(), MessageInterface\getBody(), OnlineMediaController\getLanguageService(), ServerRequestInterface\getParsedBody(), and GeneralUtility\trimExplode().
|
protected |
Definition at line 150 of file OnlineMediaController.php.
References $GLOBALS.
Referenced by OnlineMediaController\addMediaFromUrl().
|
protected |
Definition at line 158 of file OnlineMediaController.php.
References $GLOBALS.
Referenced by OnlineMediaController\createAction(), and OnlineMediaController\mainAction().
mainAction | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Process add media request
ServerRequestInterface | $request | |
ResponseInterface | $response |
Definition at line 65 of file OnlineMediaController.php.
References $response, OnlineMediaController\addMediaFromUrl(), AbstractMessage\ERROR, OnlineMediaController\getLanguageService(), ServerRequestInterface\getParsedBody(), ServerRequestInterface\getQueryParams(), GeneralUtility\locationHeaderUrl(), GeneralUtility\makeInstance(), AbstractMessage\OK, GeneralUtility\sanitizeLocalUrl(), GeneralUtility\trimExplode(), and MessageInterface\withHeader().