#449 Workaround for handling of long attachment file names in IE

Mikhail Ryagin

Internet Explorer fails to handle file names which are longer than approximately 150 characters.
Actual behavior may differ from version to version:
- In IE6 or earlier download may fail (see http://support.microsoft.com/default.aspx?kbid=816868\).
- IE7 takes 160 rightmost bytes from the file name before decoding it.
This does not work too good for file names containing non-Latin characters
because it may cut through the middle of the encoded character.

The patch truncates encoded file name down to 150 bytes.


  • Hmm... I can't reproduce that with my version of IE 6 (SP3). I don't doubt that some browsers have this problem, but we've not heard any other reports of this problem (maybe not many people using such long file names). So for now, we'll leave this alone - but open - and if it draws any attention, I'd like to add your patch with a configurable on/off switch for admins whose users seem to need it. If you feel we should do differently, please explain.

    THANKS VERY MUCH for your help!