I've been unable to add attachments with docx or xlxs extension, obtaining an error that states 'The given key was not present in the dictionary'. Converting the docx file to pdf made it work, although I don't see why there needs to be such restriction.
I've obtain the same error using the following:
featureLayer.attachments.add(oid,file_path',keywords='test')
managers.AttachmentManager(featureLayer).add(oid,file_path',keywords='test')
Is this a bug?
Thanks.
Javier