laravel5 file move
$file = Input::file("nameFile");
$clientName = $file -> getClientOriginalName();
$tmpName = $file ->getFileName();
$url = $file->getRealPath();
echo $url."<br>";
echo $clientName.'<br>';
echo $tmpName;
页面显示:
D:\wwwrot\facsimilemedia\public
171801_114747673522_2.jpg
文档上说移动文件
$file->move($destinationPath);
$file->move($destinationPath, $fileName);
这该传递哪两个参数过来呀
$clientName = $file -> getClientOriginalName();
$tmpName = $file ->getFileName();
$url = $file->getRealPath();
echo $url."<br>";
echo $clientName.'<br>';
echo $tmpName;
页面显示:
D:\wwwrot\facsimilemedia\public
171801_114747673522_2.jpg
文档上说移动文件
$file->move($destinationPath);
$file->move($destinationPath, $fileName);
这该传递哪两个参数过来呀
1 个回复
双子星 - Laravel群:9783891
赞同来自: 邂逅的流年