Odkhuu
1839
23
General

Can't write image data to path for Image Manupulation

Posted 4 years ago by Odkhuu
  • laravel 5.0
  • linux server cpanel
  • php 5.6 checked fileinfo, fd, imagick
  • permission images/articles 777
    $input = Input::all();
    $path = public_path('images/articles/');
    $fileName = $input['fileName']->getClientOriginalName();
    $today = date('Y-m-d');

    $image = Image::make($input['fileName']->getRealPath());
    //File::exists($path) or File::makeDirectory($path);
    $image->save($path . $today .'-'. $fileName, 100);

error

NotWritableException in Image.php line 138: Can't write image data to path (/home/testproject/laravel/public/images/articles/2015-06-15-gerbul.jpg)

help

Please sign in or create an account to participate in this conversation.