I've got a file attached in a rich text field with filename 522-0002-02.doc. However, when I check the filename in field $FILE, it shows ATTTEKEH. The other attachments in the rich text file are fine. What I'm saying is that sometimes filename is not stored correctly in $FILE.
I've tried various methods, GetAttachment, GetEmbeddedObject, etc. to get the filename of attachments but doesn't seem to work properly. I guess it has to do with the above stated.
Is this a Lotus Notes bug?