Announcement

Collapse
No announcement yet.

Files don't download

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Files don't download

    Hi!

    I am trying to download pdf files. I used TCPDF library to create pdfs, but options to download files($pdf->output('file.pdf', D')) don't work to me. It only work option F, it might save pdf file in server.

    The fail is "Bad server response: %PDF-1.7". As I have read the problem is the interaction with ajax, I need to do it without ajax. For this I want to create a route that I can call from the controller of the entity. Thus, I could call dowload pdf with use ajax.

    How can I do it? Or other solution?

    Thanks!

    Carmen.
Working...
X