views:

44

answers:

1

I am using fpdf library and generating pdfs... What happens when i click ExportToPdf button in firefox it opens the Save as dialogbox but google chrome and IE just opens the pdf file in browser, the save as doesn't seem to open it... Why this strange behavior?

+4  A: 

Use the content-disposition response header to control this behaviour - if value is inline then pdf will open inside the browser, attachment will show save as dialog box.

Script Runner