files = {
'orderFile': ('fileName.rtf',
open(fileName, 'rb')),
}
arQuest = requests.post('http://10.50.156.121/xxx/set-formed-status',files=files, data={
'regNum': '123',
'docId': '123',
'fileName':'fileName.rtf',
'orderId': 85,
}, verify=False, stream=True)
; Maximum allowed size for uploaded files.
upload_max_filesize = 40M
; Must be greater than or equal to upload_max_filesize
post_max_size = 40M