DefaultUploadFolderResolver

Finds the best matching upload folder for a specific backend user when uploading or selecting files, based on UserTSconfig or PageTSconfig

Table of Contents

Properties

$eventDispatcher  : EventDispatcher
$resourceFactory  : ResourceFactory

Methods

__construct()  : mixed
getDefaultUploadFolderForPage()  : Folder|null
getDefaultUploadFolderForUser()  : Folder|null
resolve()  : Folder|bool
getDefaultUploadFolder()  : Folder|null
Detects the first default folder of the first storage that the backend user has access to.
resolveFolder()  : Folder|null

Properties

Methods

getDefaultUploadFolderForPage()

public getDefaultUploadFolderForPage(int|null $pid) : Folder|null
Parameters
$pid : int|null
Return values
Folder|null

getDefaultUploadFolder()

Detects the first default folder of the first storage that the backend user has access to.

protected getDefaultUploadFolder(BackendUserAuthentication $backendUser) : Folder|null

If the default storage is not available, all other storages are then checked as well.

Parameters
$backendUser : BackendUserAuthentication
Return values
Folder|null

resolveFolder()

protected resolveFolder(string $uploadPath) : Folder|null
Parameters
$uploadPath : string
Return values
Folder|null

        
On this page

Search results