I am writing an event receiver on a document library.
I need to get the previous version of the document, before the upload. BeforeProperties
unfortunately does not give me the SPFile
, only the columns. I suppose I can try and go through the document's versions, but that seems ugly, and also it would be nice to not have to have versioning turned on.
Am I missing something inside properties
? Do I have to find the previous version? If I do have to find the previous version, what does that code look like?