Re: content-disposition: inline; filename=test.zip (?)
"Andras Balogh" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
----- Original Message ----- From: "David R Robison" <[email protected]> To: <[email protected]> Sent: Tuesday, March 18, 2003 00:08 Subject: [Barracuda] content-disposition: inline; filename=test.zip (?) > I am trying to return a ZIP file as the result of a form submit. I set > the response header as follows: > > resp.setContentType("application/zip"); > resp.setHeader("Content-Disposition", "inline; filename=test.zip"); > > However, when the dialog comes up to ask the user what to do with the > response, it defaults the filename test.zip.event > > Is there a way I can suppress the suggestion that the download filename > should be appended with a ".event"? > Hi, I'm not 100% sure about this but i think this is a browser bug. It uses the extension of the url (in your case .event) to append it to the name of the file. Maybe you could try a workaround by adding an extra parameter to your url something like ?filetype=something.zip This is only a quess so it might not work. BW, Andras.