Image uploaded in media library, can only see it when I using the WP Edit Image feature. 404 when trying to view in browser

It turned out to be an .htaccess rule put in by a coworker. It was supposed to target just some .pdf files but the rule wasn’t written strict enough.

So that was a fun few hours spent on wild goose chases.