Thanks for reply.
Whenever a customer orders a product , admins/shop mangers should be able to upload a pdf/jpg file which will be stored on server and customers should be able to download it from their Order View Page.
I managed to create a Upload PDF/JPG field using ACF (Advanced Custom Fields) and it’s working fine. The issue is as these PDF/JPG will contain personal details of customer so it should be available for download by respective customer only and none other. As WordPress’s default upload directory is uploads/year/month/ anybody might be able to download it. As the PDF/jpg file name will be number sequence…anybody who opens e.g. example.com/uploads/2022/03/1.jpg is seeing it…People might get funny idea and try example.com/uploads/2022/03/13.jpg accessing directly which will show them other customer details.
I got few ideas but they’ll be hectic to manage as I’m assuming there will be at least 5-6k orders a month.
1. Create a downloadable product and assign it to orders. Not a good solution as I’ll have to create a separate product for each order.
2. Use a private direct access plugin (https://www.ads-software.com/plugins/prevent-direct-access/), which is allowing only pdf/jpg author to view it. In my case, admins and shop managers will be uploading it so customers can’t view it. I’ll have to make customers admins here for it, so again not a good solution.
3. I tried searching for premium plugins too but no luck, that’s why posted here.
What I’m looking for is that only customer should be able to download their PDF and it should not be accessible by direct link if someone tries downloading it.