logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Tiho
    • Posted on Fri 18 Jul 2003

    setting "attachment;" in response.setHeader("Content-Disposition","attachment;filename=\"" + filename + "\""); leeds some problems with IE, after the file download "Access denied" is recived if one tries to access document property of the window object in JS. Instead use response.setHeader("Content-Disposition","filename=\"" + filename + "\""); NS don't work in neither case. It tries to download file with added .jsp extension (in my case) and after that did not download anything. Maybe it needs some additional header(s)?

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: