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.