When downloading attachments, the filename isn't correct.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Fethi_Ouali
Posted On:   Saturday, June 2, 2001 06:17 AM

I'm building a web-based email client using JavaMail and a servlet.
When messages contain attachments, I put a link that allow downloading the file attached.

But when the navigator opens the downloading window, the filename of the downloading file is not the real name of the attachment (it's the name of the servlet).

What can I do ?


Thanks.

Re: When downloading attachments, the filename isn't correct.

Posted By:   amit_wadhwa  
Posted On:   Sunday, September 30, 2001 08:36 AM

would you be able to help me with the servlets code?
ive done it using an aplication and can run it only through the command prompt
i want to implement it using servlets,
and also need some tips on how to recieve mail, id be very grateful if you could help me with the code ort something, i hardly check ths list
but if you can email me at amit@netbeam.net or amit_02@yahoo.com, nothing lik it.
waiting for yuor response
regards
amit

Re: When downloading attachments, the filename isn't correct.

Posted By:   Shannon_Moschetti  
Posted On:   Thursday, June 7, 2001 04:39 PM

You'll want to do the following in the servlet:


response.setHeader("Content-disposition","filename=" + filename);

About | Sitemap | Contact