I have registered an eventhandler for a document library. On ItemAdded, I want to modify the permissions of the item such that only the uploader(creator) should have access to the file he is uploading.
When I upload a file and fill in the required metadata and click on Save, I get the error"The file SubmissionForReview_Draft/Untitled.htm has been modified by SHAREPOINT\system " .
But, I did verify the event fired and all appropriate permissions are set.
The only explanation for this could be, the file gets uploaded, the event fired and the properties of the file has changed and then the form to add additional metadata has poped up. On clicking on save, SharePoint determines that the file for which the metadata
has to be added has changed internally and throws error, which may be as expected.
Question: Is there a way around this issue, maybe to suppress check on file changed ?
Mano Mangaldas | Blog : http://howtosharepoint.blogspot.com
View Complete Post