Laravel uses Symfony UploadedFile
component that will be returned by Input::file()
method.
It hasn't got any method to retrive file name, so you can use php native function pathinfo()
:
pathinfo(Input::file('upfile')->getClientOriginalName(), PATHINFO_FILENAME);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…