How to create a link to download generated documents in symfony2?

后端 未结 5 1435
别跟我提以往
别跟我提以往 2020-12-15 10:53

Documents are created by the system and saved to the folder /web/downloads. I have created a view to display links which will allow a user to download the files, should the

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-15 11:39

    Don't know if this fits you, but keep this another ultra simple alternative in mind:

    i.e. in your view:

    Download the pdf version
    

    It opens the file, and the user has the decision if he wants to print it, download it... etc

提交回复
热议问题