TGDesigns
Member
- Local time
- 06:17
- Joined
- Nov 20, 2019
- Messages
- 89
Hi all!
Long time no post! Hope everyone who reads this is doing ok and keeping safe!
I have a bit of a dilemma, I'm using laravel to make a simple stock management system and im struggling with the logistics of storing user files, I want them to be accessible via url but the person logged in should only be able to see their product photos. Any suggestions on how to achieve this? Currently when a new product is created im saving it in "public/product_photos/{{UserID}}/{{ProductID}}" but that means someone could just switch out the id's and get a direct url to another users photo!
Cheers,
Tom