• Resolved nikphirke

    (@nikphirke)


    Hello,

    I’m looking for a plugin or an idea on how can I achieve a private file upload feature. The file will be uploaded by admins only (related to order) and will be accessible by customer only. No hotlinks. Any idea on how can I achieve this?

    I tried using ACF and it’s working fine but the uploaded file can be accessed directly too. I don’t want that as the data in the file will be personal.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Sérgio L. a11n

    (@csnlima)

    Hi @nikphirke,

    As a practical solution, I would suggest that you password protect these files.

    However, if you’re looking for a different solution, can you please give us more details?

    Where does this download area will be available for the customer and what kind of files will be uploaded?

    Best,

    Thread Starter nikphirke

    (@nikphirke)

    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.

    Hi @nikphirke

    Have you tried adding a download file to a specific order under WooCommerce > Orders > YOUR CUSTOMER’s ORDER > Generate Download Permissions? This will allow a specific customer to access that file from their account.

    https://docs.woocommerce.com/document/digital-downloadable-product-handling/#section-9

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Admin upload files for customer feature in WooCommerce’ is closed to new replies.