Flash Q!
- Started
- Last post
- 3 Responses
- 67nj
i just want to have a pdf file downloaded by clicking on a button symbol and not to open in a new or the same window...is it possible?
- fugged0
that's a client side thing, that's for the most part, out of your control.
but, you can fix that with some server side scripting to set the content type and the header
in asp you'd do something like:
Response.ContentType="applicatio...
Response.AddHeader "Content-Disposition", "attachment; filename=something.pdf"and php somethng like:
header("Content-Type: application/pdf");
header("Content-Length: " . $length);
header("Content-Disposition: inline; filename=" . $filename);
- 67nj0
wow!
i didnt imagine that!
i guess i'll leave it like that than...thanx amigo!
- Moo0
just put the pdf into a zipped file then do a normal link to the file so www.something.com/file.pdf it should bring up a download box