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
Laravel uses Symfony UploadedFile component that will be returned by Input::file() method.
UploadedFile
Input::file()
It hasn't got any method to retrive file name, so you can use php native function pathinfo():
pathinfo()
pathinfo(Input::file('upfile')->getClientOriginalName(), PATHINFO_FILENAME);