1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-27 00:51:06 +02:00
Files
OpenIntegrations/docs/en/md/Dropbox/File-and-directory-management/Upload-file-by-url.md
Vitaly the Alpaca (bot) 9c977d53e1 Main build (Jenkins)
2024-10-06 16:55:08 +03:00

1.1 KiB

sidebar_position
sidebar_position
5

Upload file by URL

Uploads a file to the cloud drive by fetching it from the specified URL

Function UploadFileByURL(Val Token, Val FileURL, Val Path) Export

Parameter CLI option Type Description
Token --token String Token
FileURL --url String URL source of the file
Path --path String Save path on Dropbox

Returns: Map Of KeyAndValue - serialized JSON response from Dropbox


    Path  = "/New/url_doc.docx";
    Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
    URL   = "https://openyellow.neocities.org/test_data/document.docx";

    Result = OPI_Dropbox.UploadFileByURL(Token, URL, Path);
    
  oint dropbox UploadFileByURL --token "sl.B6AQWp9MlZlz4iaf41whVKxX9-MXeCiQhPRe4YIRxFmZ3zHsdjmOAatzgaWVhqmlIOvDD6WIUQ..." --url %url% --path %path%

{
 ".tag": "async_job_id",
 "async_job_id": "2olo13OZi-cAAAAAAAAAAQ"
}