Upload file with form data using Delphi Indy HTTP component
问题 I want to replicate this part of Python code in Delphi using Indy: postdata = {'data': '{"data":{"xMode":0,"overrideOS":1,"messageId":"","vmProfileList":"11","submitType":"0","url":""},"filePriorityQ":"run_now" }'} file_up = {'amas_filename':open('/home/samples/temp/vtest32.exe','r')} file_upload_req=requests.post(url,postdata,files=file_up,headers=headers,verify=False) I tried it like this: Params.AddFormField('data', '{"data":{"xMode": '+ xMode +',"analyzeAgain":1,"overrideOS":1,' + '