I made a module that saves custom files in the tmp folder when users add a product to the cart, and move the file to private folder when the order is submitted.

If I set the file status to 0, users can view the file in the cart, but if I set the file as permanent, users get access denied to the file stored in the tmp folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.