Returns the original file extension
It is extracted from the original file name that was uploaded. Then is should not be considered as a safe value.
string The extension
public function getClientOriginalExtension() {
return pathinfo($this->originalName, PATHINFO_EXTENSION);
}