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
In Laravel 5.2
Use Request and it's already present in the app file in the aliases array
To retrieve original file name
$request->file('upfile')->getClientOriginalName();
To get file name without extension
basename($request->file('upfile')->getClientOriginalName(), '.'.$request->file('upfile')->getClientOriginalExtension());