locked
Recognize new revision file upload in Document Library RRS feed

  • Question

  • There's a major and minor versioned document library. Users may upload file with the same name existing in the document library, so it takes another minor version. Or users may edit the item in the document library by only changing item fields without uploading a file, so it takes another minor version as well.

    I need to understand if user operation is a file upload? I use itemupdated event handling method. But I do not know where to control to understand whether it is a file upload or item editing?

    Please help,

    Thanks



    • Edited by asilter Monday, September 10, 2012 5:44 AM
    Friday, September 7, 2012 1:35 PM

All replies

  • http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventreceiver.itemupdated.aspx

    Before and After properties are guaranteed for postback events on documents, but Before properties are not available for postback events on list items.

    I have no clue, but maybe testing the Before or After property might help.  Or maybe the ItemAdded or ItemAdding method might offer better results.


    Steve Clark, MCTS | Twin-Soft.com
    Easy Bins Dumpster Rentals of Northern VA. (Specializing in driveway-sized roll-off dumpsters.)
    Be sure to click one of them there forum buttons that artificially inflates my narcissitic ego... I mean gives me points.

    Monday, September 10, 2012 1:05 PM