📌  相关文章
📜  在 null 上调用成员函数 getClientOriginalExtension() - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:01.782000             🧑  作者: Mango

代码示例4
$imageName = rand(11111, 99999) . '.' . $request->file('image')->getClientOriginalExtension();
            $destinationPath = 'events';
            $fileName = rand(11111, 3232399999) . '.' . $extension;
            $upload_success = $image->move($destinationPath, $imageName);