mardi 28 février 2017

unable to create directory in laravel 5.1 when upload image?

Error : Unable to create the "http:/localhost/shopping/public/src/img/" directory

my code :
$imageName = $product->id . '.' . 
        $request->file('image')->getClientOriginalExtension();
                $request->file('image')->move(
        url().'/public/src/img/', $imageName
        );



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2mGmyWf
via IFTTT

Aucun commentaire:

Enregistrer un commentaire