I use memberpress to create memberships, members can upload files to share with other members in a document library, but currently if someone has the url of the file (it is in the wp-content/uploads folder) then they can access it without being members.
There are two options. I can use memberpress downloads plugin (but I am having trouble creating a form that works with this as the files are stored in a different folder) Or I can protect membership content using a prefix with each file. This limits access according to rules I can set up with memberpress.
I think the simplest way would be for me to add a prefix to the file when it gets uploaded based on a taxonomy that they select when they upload it in the form. This then automatically protects the files from being accessed directly.
This is something that is possible to achieve however, it will need to be done with custom code.
Unfortunately the custom code required to achieve this is out of the scope of our support forum as such I wouldn't be able to provide much assistance here.