“See attached file: ” – pesky issue

I recently wrote about how to replace the “See attached file: ” string in an XPage with a link to the attachment. We enhanced the code to display an icon to make the output more like the user would expect it.

Everything worked fine until we implemented the code in one of our productive applications. The code itself works, but for some reason, the filenames that are stored in the $File items do not correspond the actual filenames.

Not sure, why this happens. I’ve tried to reproduce but are not able to. The only hint I found is a technote about a similar issue with iNotes.

Would be great if such issues get generally fixed and not just worked around as it obviously has been done for the XPages download control.