Jaikangam
134
17
Laravel

Can't write image data to path in Production server [Interverntion Image ]

Posted 4 days ago by Jaikangam

It work on the local server. But on the production it gives can't write image data to path. how can is solve this problem.

Controller to save Image


         if($request->hasFile('webinarphoto')){
            $file1 = $request->webinarphoto;
            $filename = time().'.'. $file1->getClientOriginalExtension();
            $location = public_path('images/webinar/' .$filename);
            //Image / Webinar should have folder in the public
            Image::make($file1)->resize(500,500)->save($location);
           
            $inserts ->webinarphoto = $filename;
          }

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

Reply to

Use Markdown with GitHub-flavored code blocks.