, но оно все равно не работает
Мой код ниже
Код: Выделить всё
def upload_file(fpath):
headers = {
'Api-Key': sys.argv[16]
}
files = {'file': open(fpath, 'r').read()}
response = requests.request("PUT", +"https://abcd.om/inventory/"+str(sys.argv[3]), headers=headers, files=files)
Код: Выделить всё
--9bcf1c0247af690b91cad8f301346f2e
Content-Disposition: form-data; name="file"; filename="file"
-9bcf1c0247af690b91cad8f301346f2e--
Любая помощь
Подробнее здесь: https://stackoverflow.com/questions/709 ... pload-file
Мобильная версия