Problems using multipart_encode (poster library)
问题 I am trying to upload a file using multipart_encode to realize the MIME process. However, I met the following error AttributeError: multipart_yielder instance has no attribute '__len__' . Below are is my approach, I really appreciate if anyone can give me some suggestions. url = "https://pi-user-files.s3-external-1.amazonaws.com/" post_data = {} #data is a dict post_data['AWSAccessKeyId']=(data['ticket']['AWSAccessKeyId']) post_data['success_action_redirect']=(data['ticket']['success_action