PseudoFile

Use in `UploadedFileReferenceConverter` handling file uploads.

PseudoFile and PseudoFileReference are independent and not associated.

Internal

Table of Contents

Properties

$nameFileInfo  : SplFileInfo
$payloadFileInfo  : FileInfo
$payloadFilePath  : string

Methods

__construct()  : mixed
see https://www.php.net/manual/en/features.file-upload.post-method.php
getContents()  : string
getExtension()  : string
getMimeType()  : string|null
getName()  : string
getNameWithoutExtension()  : string
getSha1()  : string
getSize()  : int|null

Properties

$nameFileInfo

protected SplFileInfo $nameFileInfo

$payloadFilePath

protected string $payloadFilePath

Methods

__construct()

see https://www.php.net/manual/en/features.file-upload.post-method.php

public __construct(array<string|int, mixed> $uploadInfo) : mixed
Parameters
$uploadInfo : array<string|int, mixed>

as in $_FILES

Tags
throws
TypeConverterException

getContents()

public getContents() : string
Return values
string

getExtension()

public getExtension() : string
Return values
string

getMimeType()

public getMimeType() : string|null
Return values
string|null

getName()

public getName() : string
Return values
string

getNameWithoutExtension()

public getNameWithoutExtension() : string
Return values
string

getSha1()

public getSha1() : string
Return values
string

getSize()

public getSize() : int|null
Return values
int|null

        
On this page

Search results