You spelt attachment wrong. You have attachement.
Travis
---- Original Message ----
From: Mike Tinnes <[EMAIL PROTECTED]>
Sent: 2001-01-19 23:45:17.0
To: [EMAIL PROTECTED]
Subject: file upload issues
Hello everyone. I need a jsp which downloads a serverside image to a client and
instead of simply displaying the image in the browser, I'd like it to popup a save-as
dialog. I've read a few posts on a similar subject, but I can't get anything to work
the way I need it to. I've tried the following in my response code...
response.setContentType("image/gif");
response.setContentLength((int) f.length());
response.setHeader("Content-disposition","attachement; filename=test.gif");
This displays the image in the browser as usual, but does use 'test.gif' for saving.
Do I need some special mime type?
TIA, Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]