Общий доступ к коду и ответу для ссылки-
Код: Выделить всё
filepath = "/home/meera/Downloads/download.pdf"
account_name = "account_name"
container_name = "container_name"
name = "doc.pdf"
sas_token = "sas_token"
with open(filepath, 'rb') as f:
file_content = f.read()
headers = { "Content-Type": "application/pdf; charset=UTF-8", "x-ms-blob-type": "BlockBlob" }
url = "https://"+ account_name+".blob.core.windows.net/"+container_name+"/"+name+sas_token
response = requests.put(url, headers=headers, data=file_content)
Код: Выделить всё
ResourceNotFoundПодробнее здесь: https://stackoverflow.com/questions/666 ... -not-exist
Мобильная версия