From a3dcdf1a8371f66083920f67790155deb008baba Mon Sep 17 00:00:00 2001 From: Vitaly the Alpaca Date: Thu, 18 Apr 2024 16:57:33 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B5=D0=BE=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20OPI=20->=20OInt=20?= =?UTF-8?q?(workflow)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OInt/core/Modules/OPI_GoogleDrive.os | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/OInt/core/Modules/OPI_GoogleDrive.os b/OInt/core/Modules/OPI_GoogleDrive.os index 4697fa0f64..b5b2a9c68b 100644 --- a/OInt/core/Modules/OPI_GoogleDrive.os +++ b/OInt/core/Modules/OPI_GoogleDrive.os @@ -579,8 +579,15 @@ Прервать; КонецЦикла; - URL = "https://www.googleapis.com/upload/drive/v3/files?uploadType=resumable"; - Ответ = OPI_Инструменты.Post(URL, Описание, Заголовки, Истина, Истина); + URL = "https://www.googleapis.com/upload/drive/v3/files?uploadType=resumable"; + + Если ЗначениеЗаполнено(Идентификатор) Тогда + URL = СтрЗаменить(URL, "/files", "/files/" + Идентификатор); + Ответ = OPI_Инструменты.Patch(URL, Описание, Заголовки, Истина, Истина); + Иначе + Ответ = OPI_Инструменты.Post(URL, Описание, Заголовки, Истина, Истина); + КонецЕсли; + АдресЗагрузки = Ответ.Заголовки["Location"]; Если Не ЗначениеЗаполнено(АдресЗагрузки) Тогда