Reputation: 15
I'm having an issue within Strapi CMS while trying to retrieve uploaded Media from the storage. I'm pretty sure that it's related within the Shared Hosting platform as the solution works perfectly locally.
Steps taken to launch the project to Shared Hosting
npx create-strapi-app@latest
command (common build)npm run strapi build
npm install
to install node modulesnpm run strapi start
The application starts up and I'm able to authenticate with my Superadmin.
Whenever I upload something, it's being uploaded to /public_html/configure/public/uploads
folder but the issue here is that when I try to retrieve media through the GUI Media Library I'm receiving the following error:
404 Not Found
GET domain/upload/files?sort=createdAt:DESC&page=1&pageSize=10&filters[$and][0][folderPath][$eq]=/
What I've tried so far
Any help or suggestions would be more than welcome.
Upvotes: 0
Views: 172
Reputation: 15
Found an link in Strapi forum where mod_security is turned off and for some reason that seems to do the trick. Everything described above is now working.
Someone with security knowledge could maybe elaborate, why mod_security is blocking Strapi to properly function.
Upvotes: 0