Stream
class Stream extends File
A PHP stream of unknown size.
Methods
__construct(string $path, bool $checkPath = true)
Constructs a new file from the given path.
from File
getSize()
{@inheritdoc}
Details
string|null
guessExtension()
Returns the extension based on the mime type.
If the mime type is unknown, returns null.
This method uses the mime type as guessed by getMimeType() to guess the file extension.