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
Copy file name to clipboardExpand all lines: docs/en/edge/cordova/file/filetransfer/filetransfer.md
+23-24Lines changed: 23 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,35 +62,34 @@ __Parameters:__
62
62
-__trustAllHosts__ - Optional parameter, defaults to false. If set to true then it will accept all security certificates. This is useful as Android rejects self signed security certificates. Not recommended for production use. Supported on Android and iOS. _(boolean)_
63
63
64
64
__Quick Example__
65
-
65
+
66
66
// !! Assumes variable fileURI contains a valid URI to a text file on the device
67
-
68
-
var win = function(r) {
69
-
console.log("Code = " + r.responseCode);
70
-
console.log("Response = " + r.response);
71
-
console.log("Sent = " + r.bytesSent);
72
-
}
73
-
67
+
68
+
var win = function(r) {
69
+
console.log("Code = " + r.responseCode);
70
+
console.log("Response = " + r.response);
71
+
console.log("Sent = " + r.bytesSent);
72
+
}
74
73
var fail = function(error) {
75
-
alert("An error has occurred: Code = " + error.code);
0 commit comments