Support the ongoing development of Laravel.io →
posted 8 years ago
Requests
Last updated 2 years ago.
0

files are deleted by apache/php. make sure the apache user can write to the storage folder (public/storage)

0

Are you sure that the path is correct? Because laravel already comes with a storage folder (which is outside of the public folder).

Also if you use the Storage facade I think you can configure a root path which will always be prepended. You should check that in your config since that may result in something like Applications/MAMP/htdocs/laravel/storage/Applications/MAMP/htdocs/laravel/public/storage/myfile.jpg

0

the path is correct - with cd /Applications/MAMP/htdocs/laravel/public/storage/ - I am in the correct directory and the image is in there ...

I do not use storage_path() - this is outside the public folder - I know ...

apache/php can write to the folder - the upload of the images are working properly. maybe I give a try with unlink or transfer the site to a production server and try there ...

0

Sign in to participate in this thread!

Eventy

Your banner here too?

heppi75 heppi75 Joined 19 Nov 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.