You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use a command line interface tool from Dropbox.
7
+
Dropbox wrote it in language "Go", which allows to compile a single binary which could be embedded in your application and deployed with it (Apache License).
8
+
9
+
If Dropbox changes the API, just download their latest release and replace the binary.
10
+
11
+
For Mac:
12
+
The downloaded binary is not signed, so execution on Mac is limited (you need to launch with Control key pressed). To use and deploy we advise to sign it, and then sign/notarize the embedding 4D application.
13
+
14
+
Setup on customer computer / Both platforms:
15
+
To authorize the binary, you need to execute it once through terminal/console and enter:
16
+
{path}dbxcli ls
17
+
18
+
It will ask for access:
19
+
1. Go to https://www.dropbox.com/1/oauth2/authorize?client_id=07o23gulcj8qi69&response_type=code&state=state
20
+
2. Click "Allow" (you might have to log in first).
21
+
3. Copy the authorization code.
22
+
Enter the authorization code here:
23
+
xxxx
24
+
25
+
This needs to be done manually once.
26
+
27
+
codesign --force --sign "Developer ID Application: 4D Deutschland GmbH" /Users/thomas/Desktop/dbxcli
Copy file name to clipboardExpand all lines: Documentation/Classes/FileTransfer_curl.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ End if
36
36
|[.setActiveMode](#setActiveMode)<p> Switch from default passive mode to active mode.|
37
37
|[.setRange](#setRange)<p> Allows to upload/download only a part of a file.|
38
38
|[.setCurlPrefix](#setCurlPrefix)<p> Allows to use any additional cURL options.|
39
-
|[.setCurlPath](#setCurlPath)<p> Allows to use another cURL installation.|
39
+
|[.setPath](#setPath)<p> Allows to use another cURL installation.|
40
40
|[.enableProgressData](#enableProgressData)<p> If enabled, result.data will include progress information text.|
41
41
|[.setAsyncMode](#setAsyncMode)<p> By default all commands are executed synchronously, meaning the command do not return till execution is completed or a timeout occurred. This allows all command to return the result or execution information..|
42
42
|[.stop](#stop)<p> Terminates the execution of a running operation, such as upload or download.|
@@ -352,9 +352,9 @@ See https://curl.se/docs/manpage.html for full list.
352
352
#### Example
353
353
$ftp.setCurlPrefix("--limit-rate 25M") // limit used bandwidth to 25 Mbit.
If (($worker.response#Null:C1517) && ($worker.response#""))// seems not to be an error, sometime curl set's process bar in error and result in response.
0 commit comments