vendredi 8 avril 2016

How to serve a pdf file from ember

I want to make a pdf document available via a link from my ember app, so I figured I would put the file in /public/assets/pdf/ and link to it as <a href='/assets/pdf/myfile.pdf'> just as I would for an image in public/assets/images. However the link isn't sending the file to the browser. I get a 200 response with a Content-Type: application/pdf header, but no file.

What's the right way to do this?

Aucun commentaire:

Enregistrer un commentaire