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
Get the file name using getClientOriginalName(); then use the explode function to get the name and the image format as shown below:
$image=Input::file('image'); $fullName=$image->getClientOriginalName(); $name=explode('.',$fullName)[0];