When I upload locally using WAMP64, everything happens normally. However, when I upload from the site, which is on the production server, the following error message is displayed.
NoWritableException in Image.php line 143:
Can not write image data to path (/home/premiumcarstudio/laravel/public/1481746280.jpeg)
CodethatI'mtryingtousetoupload
if($request->hasFile('fileUpload')){$image=$request->file('fileUpload');$filename=time().'.'.$image->getClientOriginalExtension();$path=public_path('images/ImagensPosts/'.$filename);Image::make($image->getRealPath())->resize(570,350)->save(public_path($filename));$post->imagem='images/ImagensPosts/'.$filename;}$post->save();
OBS.Ihavealreadychangedtheaccesspermissionstotheimagedirectoryontheserver.
DirectoryonServer