Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PDF embed in HTML page but not on another PC
Message
De
08/08/2013 17:02:50
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
08/08/2013 16:47:43
Information générale
Forum:
Internet
Catégorie:
Firefox
Divers
Thread ID:
01580093
Message ID:
01580098
Vues:
16
>From Firefox, on one PC, a PDF is shown correctly embed in the HTML page, as I have designed it. On another PC, when the user accesses that page, from the same browser, the PDF is sent as a download. Anyone would know what could be in effect here?

Do you have the content type set properly? If not, the browser has no way to handle it and forces it to download.

Example:
            HttpContext.Response.AddHeader("content-disposition", "filename=Certificate.pdf");
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform