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
I use this code and work in my Laravel 5.2.*
$file=$request->file('imagefile'); $imgrealpath= $file->getRealPath(); $nameonly=preg_replace('/\..+$/', '', $file->getClientOriginalName()); $fullname=$nameonly.'.'.$file->getClientOriginalExtension();