Try setting it to throw exceptions on errors https://github.com/laravel/laravel/blob/9.x/config/filesystems.php#L36
Sep 20, 2022
4
Level 1
request->file('...')->store('...') returns false
Hello there, I noticed that the store method doesn't work lately (it was working before). With a code like this:
if ($request->hasFile("image")) {
$request->file('image')->store('public/images')
}
the store method returns false and doesn't store the image. Why? The image folder exists and the permissions have been set.
EDIT: I'm using Laravel 9 and It's the same if I try with:
Storage::putFile('public/images', 'image');
Level 102
6 likes
Please or to participate in this conversation.