Personally, I can’t think of a good reason to put an attachment of any kind on a profile document. They’re meant to be more of a configuration file sort of thing, not to be used as a general data document.
Actually, I do that for an application where I have several additional files for other processing: for example a thumbnail generator. By attaching the files to a rich text field within a profile document I thought that this was a great way of ensuring that the support files would be carried around with the application. But I get the same problem as described before.
My solution was:I created a new Form including a richtext field and a View displaying all documents using this form.
in a little LS function (in my case called getMyProfileDoc) i checked if there already is a document in my view, if so return a NotesDocument handle to it, if not create a new one and return a handle to the newly created document…
I tried creating several rich text fields in the profile document and attaching one image to each one. Unfortunately the problem’s still there. Checking the contents of the document, there is only one “$File” field - the last image in the document. When saving the profile document. it seems that only the most recently added file attachment is being saved in the document.