I have used Input::file(\'upfile\')->getClientOriginalName() to retrieve name of uploaded file but gives name with extension like qwe.jpg.How do I g
Input::file(\'upfile\')->getClientOriginalName()
qwe.jpg
This one is pretty clean:
$fileName = pathinfo($fullFileName)['filename'];
Equivalent to:
$fileName = pathinfo($fullFileName, PATHINFO_FILENAME);
https://php.net/manual/en/function.pathinfo.php