I made a project with php and symfony. My problem is the following:
in my application I can upload an object (with a file associated) and I can download it.
The download can be done from the following routing:
symfony/app_dev.php/download/product/{id}
where {id}
is of course the id of the product.
How can I obtain the same result without showing the {id}
in the routing?
This is very important, because each user can download only some determinate products, but if the id is shown in the routing, every user can download every products without being authorized.
Actually the problem consists into "passing the {id}
information within two action without show it in the routing".
Thank you for your help