Closed mirror222 closed 7 years ago
I was trying to upload a file to an openstack (swift), it it failed:
url = 'http://192.168.1.100:8080/v1/AUTH_xxxxxxxxxxxxxxxxxxxx/container1/test.jpg' files = {'file': open('test.jpg', 'rb')} r = client.put(url, request_body=files, request_headers=headers)
any advice? thank you
Hello @mirror222,
What is the error message?
I was trying to upload a file to an openstack (swift), it it failed:
url = 'http://192.168.1.100:8080/v1/AUTH_xxxxxxxxxxxxxxxxxxxx/container1/test.jpg' files = {'file': open('test.jpg', 'rb')} r = client.put(url, request_body=files, request_headers=headers)
any advice? thank you