Gitea with Snap: unable to access removable drives

Hello, all. As title implies, I’ve installed Gitea v1.17.3 on an Ubuntu 22.04.1 LTS server via Snap. On the install page, I changed the repo and lfs directory to /media/<drive-name-here>/gitea/repo and /media/<drive-name-here>/gitea/lfs respectively. Their permissions are as follows:

$ pwd

$ sudo ls -l
total 0
drwxr-x--- 1 git git 0 Nov 21 05:15 lfs
drwxr-x--- 1 git git 0 Nov 21 04:21 repo

Despite setting the username to git, I would consistently get the notification, mkdir /media/<drive-name-here>/gitea/data failed: Permission denied. Just in case, I did run:

sudo snap connect gitea:removable-media

But this didn’t appear to help on install. For now, I’ve installed using the pre-filled variables (i.e. in the /var/snap/gitea/common/data directory), but I’m wondering what else I could do to make Gitea have permissions to create files in the /media mounted drives.

Also, how do I test if the removable-media permission actually worked? Do I edit /var/snap/gitea/common/conf/app.ini to the values below?

RUN_USER = git

ROOT = /media/<drive-name-here>/gitea/repo

PATH = /media/<drive-name-here>/gitea/lfs