0
我在wamp服務器上使用Laravel 4.2。Laravel 4無法上傳圖像
錯誤:
Intervention \ Image \ Exception \ NotWritableException Can't write image data to path (C:\wamp\www\laravel.....)
我的腳本:
$image = Input::file('image');
$filename = date('Y-m-d-H:i:s').".".$image->getClientOriginalExtension();
$path = public_path('img/products/' . $filename);
Image::make($image->getRealPath())->resize(468, 249)->save($path);
嘗試先做一個搜索。 [http://stackoverflow.com/questions/22876660/intervention-image-exception-imagenotwritableexception-using-laravel-4](http://stackoverflow.com/questions/22876660/intervention-image-exception-imagenotwritableexception-using- laravel-4) – itachi 2014-10-27 10:12:23
我跟着這個問題,但得到錯誤。 – TriMinh 2014-10-27 10:17:48
您必須將777權限添加到'public/img/products /'文件夾 – oscarvady 2014-11-09 14:55:27