laravel 5.3图像上传文件路径存储在变量中

时间:2017-01-16 12:59:27

标签: object image-uploading laravel-5.3

Symfony \ Component \ HttpFoundation \ File \ File Object([pathName:SplFileInfo:private] => employee \ logo_5781432114142.jpg [fileName:SplFileInfo:private] => logo_5781432114142.jpg) 我想将path-Name存储在变量中如何存储文件路径

1 个答案:

答案 0 :(得分:0)

尝试了另一种存储图像文件路径的方法 示例: - $ imageName = time()。'。'。$ request-> image_file-> getClientOriginalExtension();