SPFileCollection.Add(string, Stream, Hashtable)

If you’re using one of the SPFileCollection overloads to create a file in SharePoint you’ll find that there’s a few overloads that take in a Hashtable for properties.  The key of the Hashtable can not be the GUIDs for the fields, they should be the internal names of the fields.