Symfony \ Component \ HttpFoundation \ File \ File Object([pathName:SplFileInfo:private] => employee \ logo_5781432114142.jpg [fileName:SplFileInfo:private] => logo_5781432114142.jpg) 我想将path-Name存储在变量中如何存储文件路径
答案 0 :(得分:0)
尝试了另一种存储图像文件路径的方法 示例: - $ imageName = time()。'。'。$ request-> image_file-> getClientOriginalExtension();