1

I have a "ItemAdded" event, I want to check Number of documents uploaded if a user uses "Upload Multiple Documents" for uploading.

Normally what happens is when a user adds a item they are taken to "Edit/update Item" form but when he uploads multiple documents, it takes us straight to list.

  • do you want to restrict the user to upload one item at a time? – Furqan Hameedi Sep 6 '12 at 10:43
  • Nope, just want to check if item added is added through "Multiple document upload" option – Muhammad Raja Sep 6 '12 at 10:45
0

Not too familiar with event receivers so forgive me if the suggestion is WAY off:

Couldn't you used the properties to check the current files in the document library for matching authors and created times? Seems to me the only way multiple items can have the EXACT same created dates/times and authors is if they were uploaded at the same time using the upload multiple files. (Not sure of the precision in terms of the created datetime field or if Sharepoint populates this field as they are uploaded or using the time all of them finish)

0

There isn't any simple way of doing it, however you can save data to Database or something like that but its too much hassle so I avoided it.

Hope it helps if someone else came across same problem :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.