I'm using Strapi with local upload provider.
Whenever I upload a file, it is stored under the "public/uploads" folder locally, which is public.
Meaning that anyone with the file id, could download it eg. http://strapi-admin:1337/uploads/image1_9a9bd50a5b.png
However, I would like to only allow:
- downloads to autenticated users which have the role "consumer" to be able to download files through the strapi API.
What is the best way for doing this?
Should I modify the upload extension directly? or is it any workaround I can use to implement this?
I would still like to store files locally (not using AWS3 and other cloud providers)
Thanks