I have been trying to get the extension from an uploaded file, searching on google, I got no results.
文件已存在于以下路径中:
\Storage::get('/uploads/categories/featured_image.jpg);
Now, How can I get the extension of this file above?
使用输入字段,我可以得到如下扩展:
Input::file('thumb')->getClientOriginalExtension();
Thanks.