File Download and $FILE Problem

I have documents where files were uploaded through the web. They weren’t saved in a rich text field, but they’re currently accessed via $FILE. I am now building an XPage to access these documents, but I’m not sure how the File Download control can access the file attachments these documents contain, since there’s no field to bind to. I can create a rich text field and move the files over to it and then bind the field, but I’d like to see if there’s another way.

Any suggestions?

Subject: Any luck?

Any success with this Deborah? I’ve found that using LotusScript to attach files to a rich text field (NotesRichTextItem.EmbedObject) produces the same results you describe.

Subject: Nope. I did do a workaround though.

Fortunately there was a field that contains the attachment file names (@AttachmentNames) in the form I was working with.

In the XPage, I took a computed field and set the content type to HTML. In it, I created an array from the contents of the field that held the filenames, then used a Javascript for loop to go through the array, building the HTML link, format, and url to open the files.

I would have preferred something native (i.e., control widget). All the applications I work with are web-only, so uploaded files aren’t stored in a rich text field, although they are “attached” to the document itself. It seems to me that there are probably many developers in my situation, and that there should be a way to access these files “natively” through an XPage control without having to build an interface from scratch.