I need to add a specific behavior in the ItemAdding event when the item added is a document, but I noticed that when using the "Upload document" or the "Upload Multiple Documents" features in Sharepoint 2010, properties.Afterproperties["ContentType"] and properties.Afterproperties["ContentTypeId"] are null. So my question is simple, is it safe then to assume that the item being added is a document? and if not, then how can I find out if it is a document?
Thanks! Alex