multipart_form_data = {'file1': open('myfile.zip', 'rb'), 'file2': (
    'custom_file_name.zip', open('myfile.zip', 'rb')), 'action': ('',
    'store'), 'path': ('', '/path1')}
response = requests.post('https://httpbin.org/post', files=multipart_form_data)
print(response.content)
How to send a "multipart/form-data" with requests in python?