You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brad Hafichuk <br...@azus.net> on 2005/02/07 21:08:21 UTC
IE converts file.jpg to file_jpg when saving
This problem has been bugging me for at least 6 months. I finally noticed
that IE6 is converting the dot (".") in file.jpg to an underscore ("_").
Has anyone experienced this very odd behaviour before?
I should point out that I am sending the file back to the client via a
servlet, the process being.
Load file into memory (as bytes) and close fileinputstream
Get mimetype of file
Set responses mimetype
Set response content-disposition (header) to attachment and
filename=file.jpg
Get response OutputStream
Write loaded file (bytes) to outputstream
Flush and close outputstream
I can post the exact code if needed. I'm running Tomcat 4.1.30.
Cheers,
Brad