Fix for non-image files all being uploaded to the root in Media Manager (#2524)
Fix for non-image files all being uploaded to the root in Media Manager (#2524)

* Moved file store outside if statement in media controller

* Code style fixes

the-control-group/voyager,the-control-group/voyager,fletch3555/voyager,handiwijoyo/voyager,fletch3555/voyager,handiwijoyo/voyager