调用 store 方法会生成唯一的 ID 来作为文件名,如果想获取原件本来的名称可以使用
$file = $request->file('file');
$file->getClientOriginalName();
调用 store 方法会生成唯一的 ID 来作为文件名,如果想获取原件本来的名称可以使用
$file = $request->file('file');
$file->getClientOriginalName();
文章来源: blog.csdn.net,作者:lxw1844912514,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/lxw1844912514/article/details/100029595
评论(0)