Kentico - Force download of PDF

/ Published in: ASP
Save to your folder(s)

"This was a requirement that the client had because there were differences in how various browsers were displaying the same PDFs. By setting the "Content-Disposition" header to "attachment" it forces the user to download the file. I thought this was kind of cool, so I thought I'd share it. This is how I implemented it for Kentico's GetFile handler."

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.