Documentation

FileService
in package

FinalYes

Table of Contents

Constants

IMG_RANDOM_NUMBER_MAX  : int = 9999
IMG_SUPPORTED_MIME_TYPES  : array<string|int, mixed> = ['image/webp']

Properties

$conf  : AppConf

Methods

__construct()  : mixed
getAvailableImgFilename()  : Filename
getUploadedImages()  : array<int, string>

Constants

IMG_RANDOM_NUMBER_MAX

public int IMG_RANDOM_NUMBER_MAX = 9999

IMG_SUPPORTED_MIME_TYPES

public array<string|int, mixed> IMG_SUPPORTED_MIME_TYPES = ['image/webp']

Properties

Methods

getUploadedImages()

public getUploadedImages() : array<int, string>
Tags
todo

Assume that filenames are one-byte encoded.

Assume that filenames are in lowercase.

Hard-coded file extensions.

Return values
array<int, string> —

Filenames of all images in the uploaded files folder (subfolders not included).

On this page

Search results