Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
    
do you want to restrict the user to upload one item at a time? –  Furqan 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

2 Answers 2

up vote 0 down vote accepted

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 :)

share|improve this answer

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)

share|improve this answer
    
thanks but no thanks as I can't check something that is about to happen or if is happening :) –  Muhammad Raja Sep 6 '12 at 13:48
1  
a smiliar question being asked - look at paul stork reply social.msdn.microsoft.com/Forums/is/sharepoint2010general/… –  spStacker Sep 6 '12 at 20:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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