Mongodb – Allowing access to files only for users that purchased it
I have a folder on the server named uploads where uploaded files are stored (images) on requests made to the server to get a file I want to verify if the user has purchased it. Ids of purchased products by…