Contao Utils Bundle

FileStorageUtil
in package

Table of Contents

Properties

$projectDir  : string

Methods

__construct()  : mixed
FileStorageUtil constructor.
createFileStorage()  : FileStorage
Returns a new FileStorage instance.

Properties

Methods

__construct()

FileStorageUtil constructor.

public __construct(string $projectDir) : mixed
Parameters
$projectDir : string

createFileStorage()

Returns a new FileStorage instance.

public createFileStorage(string $storagePath[, string $fileExtension = '' ]) : FileStorage

See PdfPreview for example usage.

Parameters
$storagePath : string

The path where to store the files relative to the project dir

$fileExtension : string = ''

The default file extension of the stored files. E.g. jpg, txt, ...

Return values
FileStorage

        
On this page

Search results