--- sidebar_position: 6 description: Gets the upload status of the file by URLСтраницы keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Dropbox] --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # Get upload status by URL Gets the upload status of the file by URL `Function GetUploadStatusByURL(Val Token, Val JobID) Export` | Parameter | CLI option | Type | Required | Description | |-|-|-|-|-| | Token | --token | String | ✔ | Token | | JobID | --job | String | ✔ | ID of async jsob from UploadFileByURL response | Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
```bsl title="1C:Enterprise/OneScript code example" Token = "sl.u.AFt3vUwv48vM5qew5BNGYIL-SQD1cAgHWVPo0J8aFq_tYNu2iDfL0m4uEPlACHZTrP5__xFflXXAJGoEpQSAY9frobih1WO72pTg8FYMR_Jq1OAB3Hn96sGNX35PTbcahW68mFfuFJiAn4-SP1d_vgk5Jf3Gfgx-TaDEkf7QZpqDrxJZfiqyGM32HePpwudjUzsAbtqVLM_KGJG7-1txj8b94n1vwSUuIJmJr9W9Tz_2eXwrDHTF-Xw6BqjTDElWP9IbJDerMbcS-cTE84IoZiVRC3jdao6MD5Mq-vL7JYoAtVe_qUDOSM2WBETiLM5MPGybDyoMAzilf_8aEUglD_DMj1ZVBOtM1HDl110dvxPyFOGtYMcrDDXBbQRT2htAsX3fkF_qM3hqsAgojyXMsKKdk6az3SbasZBsL6NM4XT_9TBN5aU4BUFKeRelENnkDlci4So-AIm_27YGU53Xc7fKMurQcrRLHT09WOLAo4XveC9Plvlqb1XB1alZ5i4GTlRqL-jpnG1HaRPl9DH2jFCK3FqFbwEfSQo9jRmBmshMA3vo7ch1VG_YxW9qeTh3lb0ng_QHcTys_meMCx2wiuRAboikxvk-PJGaR-YOpFlqN91QyuaJAJOcJvM8wn2PEW4miqR6aJgxxL3h-g9xs7QLWMBpHJ0Qzn5vlpJsZoGtoPdSTAGRIO15MLayFgkV6UYr1FyZMajgIG-g8q6vLObgGlLnoHb..."; WorkID = "EWZUOuTUFDsAAAAAAAAAAQ"; Status = "in_progress"; While Status = "in_progress" Do Result = OPI_Dropbox.GetUploadStatusByURL(Token, WorkID); Status = Result[".tag"]; OPI_Tools.Pause(5); EndDo; ``` ```bash oint dropbox GetUploadStatusByURL \ --token "***" \ --job "_xsE6a5y2CAAAAAAAAAAAQ" ``` ```batch oint dropbox GetUploadStatusByURL ^ --token "***" ^ --job "_xsE6a5y2CAAAAAAAAAAAQ" ``` ```json title="Result" { ".tag": "complete", "name": "url_doc.docx", "path_lower": "/new/url_doc.docx", "path_display": "/New/url_doc.docx", "id": "id:kJU6-a-pT48AAAAAAAAclg", "client_modified": "2024-10-09T06:17:00Z", "server_modified": "2024-10-09T06:17:01Z", "rev": "6240533b3289cbd841553", "size": 24069, "is_downloadable": true, "content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c" } ```