Please check comments in that example. For the attachments that has not been loaded yet, the file name would contain path delimiters. Newly added attachments could be distinguished this way.
Another way would be to compare record to its original using CQ API, and add newly added attachments, if any.
Users browsing this forum: Baidu [Spider] and 2 guests