You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by da...@apache.org on 2016/05/24 19:12:37 UTC
cordova-plugin-file-transfer git commit: added link to sample
Repository: cordova-plugin-file-transfer
Updated Branches:
refs/heads/master c475060ac -> 82c5af9b5
added link to sample
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/82c5af9b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/82c5af9b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/82c5af9b
Branch: refs/heads/master
Commit: 82c5af9b5dd6accbd6b2d25174d3c1f4e576e5b3
Parents: c475060
Author: Mikejo5001 <m....@outlook.com>
Authored: Tue May 3 11:27:46 2016 -0700
Committer: daserge <v-...@microsoft.com>
Committed: Tue May 24 22:08:23 2016 +0300
----------------------------------------------------------------------
README.md | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/82c5af9b/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index ab224fa..6cbe9ac 100644
--- a/README.md
+++ b/README.md
@@ -36,8 +36,12 @@ function onDeviceReady() {
}
```
+> To get a few ideas, check out the [sample](#sample) at the bottom of this page or go straight to the [reference](#reference) content.
+
Report issues with this plugin on the [Apache Cordova issue tracker](https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20status%20in%20%28Open%2C%20%22In%20Progress%22%2C%20Reopened%29%20AND%20resolution%20%3D%20Unresolved%20AND%20component%20%3D%20%22Plugin%20File%20Transfer%22%20ORDER%20BY%20priority%20DESC%2C%20summary%20ASC%2C%20updatedDate%20DESC)
+##<a name="reference"></a>Reference
+
## Installation
```bash
@@ -407,7 +411,7 @@ If you just need to display the image, take the FileEntry to call its toURL() fu
```js
function displayImageByFileURL(fileEntry) {
- var elem = document.getElementById('imageFile');
+ var elem = document.getElementById('imageElement');
elem.src = fileEntry.toURL();
}
```
@@ -443,7 +447,7 @@ function displayImage(blob) {
var objURL = window.URL.createObjectURL(blob);
// Displays image if result is a valid DOM string for an image.
- var elem = document.getElementById('imageFile');
+ var elem = document.getElementById('imageElement');
elem.src = objURL;
}
```
@@ -507,7 +511,7 @@ function upload(fileEntry) {
var success = function (r) {
console.log("Successful upload...");
console.log("Code = " + r.responseCode);
- displayFileData(fileEntry.fullPath + " (content uploaded to server)");
+ // displayFileData(fileEntry.fullPath + " (content uploaded to server)");
}
var fail = function (error) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org