UploadedFile.extension

Returns the original file extension.

It is extracted from the original file name that was uploaded. Then it should not be considered as a safe value.

@return string The extension

class UploadedFile
override
string
extension
()

Meta