Method
UploadedFile::getSize
Retrieve the file size.
Description#
public UploadedFile::getSize(): ?intImplementations SHOULD return the value stored in the "size" key of the file in the $_FILES array if available, as PHP calculates this based on the actual size transmitted.
Return values#
The file size in bytes or null if unknown. ?int