Uploads not reachable 404 on url and no preview on Adminpanel either

for some reason everything works fine, but Media which is uploaded is without preview and cannot be reached trough url - always getting an 404.

I am pretty clueless, i am not sure, what config to change, to help here

How everything is setup:
I am using an cloud VPS
Installed and setup RockyLinux
I did setup Strapi in a user home directory on Rockylinux and run it. (using How to Deploy Strapi to Your Own VPS)
I did setup Nginx as Proxy (using Nginx Proxying - Strapi Developer Docs)

System Information
  • Strapi Version: 4.4.0
  • Operating System: RockyLinux 8.x
  • Database: PostgreSQL
  • Node Version: 16.16.x
  • NPM Version: 8.x
  • Yarn Version: …

To me it sounds as if the media isnt actually being uploaded. So when fetched, its not there hence no preview and the 404.
Ive had that happen to me as well, turned out i didnt have the enviroments set up properly (dev en prod).
That, or or strapi doesnt have writing permission set on the upload folder

Thx for the answer,

I double checked, Strapi do upload the files, it just cant show it on the browser or previews in the Adminpanel.

I’m having the same issue. Did you come up to a solution ?