mercredi 21 octobre 2015

Laravel File can't write on public directory (Hosted app)

So here's the deal... I uploaded a Laravel app on shared hosting, I have the app outside the public_html, where here's only the public path of laravel.

When I'm trying to store an image, it stores the path in the database, but...

$datos['imagen']->move( $logoDir, $imgNombre );

is not working, it says that is unable to create the directory... $logoDir is the public/imgs/Logos directory... So this reads because I manually put an image to the path, but not writes...

The strange thing is that if I change the directory in the (move method)as public from the Laravel core, I mean outside public_html it works perfectly... but I can not read the path so I can display it to the user.

So my question is... how to write the file to the public/imgs/Logos despite it has 777 permissions.

Or how to read from the Laravel core app??



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire