I have this requirement, using WSS 3.0, that when an attachment is added or deleted from a list item, I need to send an email to the users. I'm not having a problem with the emails; it's understanding how the following events work. I'm using the following 4 events:
ItemAttachmentAdding, ItemAttachmentAdded, ItemAttachmentDeleting, ItemAttachmnetDeleted
If I add 2 attachments to an item, I get ItemAttachmentAdding
and ItemAttachmentAdded
fired for each attachment, which is what I expect. But when I delete 2 attachments, I get ItemAttachmentDeleting
and ItemAttachmentDeleted
fired only one time eachonce total (for both files). I expect this to behave like the Adding/Added events; both events for each file deleted. And unlike the Adding/Added events, I don't have access to the name of the attachments that were deleted. Seems inconsistent.
Is this the correct behavior for these events? And is there a way to identify the names of the attachments that were deleted?