laravellaravel-filesystem

404 Not Found when access Laravel storage files in subfolder directly on browser


I'm using Laravel 9 with NGINX as the web server. I've running storage link command so I can access the storage files, but when I'm trying to access file which is placed inside subdirectory/subfolder in storage folder, I got 404. Any solution for this?

Subfolder File enter image description here

File directly in Storage enter image description here

My Storage Folder Structure

enter image description here

Fyi, I'm accessing it on React App and store the file from API.


Solution

  • I found the solution. Solved by changing the folder access permissions to 755.

    chmod 755 answer_attachments/