13 Commits

Author SHA1 Message Date
Alex Muramoto
77d31cdf42 fix(file): readAsText() and adds readAsDataURL() in File plugin (#346)
* Updates docs for CameraPreview, Base64ToGallery and Developer.MD

-DEVELOPER.md: Corrects 'npm run tslint' instruction to 'npm run lint'
-CameraPreview: Fixes syntax error in hide
-Base64ToGallery: Adds desc of options obj props

* Fixes resolveLocalFileSystemURL bug in File.readAsText() and adds File.readAsDataUrl()

- File.readAsText(): window.resolveLocalFileSystemURL() was incorrectly implemented

* Updates callback arg in File.checkFile()

Callback arg of window.resolveLocalFileSystemURL was fileSystem, but it actually returns fileEntry

* Corrects repo link and comments out setFlashMode()

- Repo prop and link in desc were not pointing to the same gh repo as the plugin
- setFlashMode() is not currently available in the repo that gets pulled by the corodova plugin
2016-07-22 14:08:11 -04:00
Guille
27c02ecb82 refactor(file): 2016-07-08 00:59:54 +02:00
Ibrahim Hadeed
0f4fdda8c6 tslint + fix var name 2016-05-12 22:55:06 -04:00
Ibrahim Hadeed
f055905190 Merge pull request #114 from iignatov/patch-1
Added implementation for File.readAsText() method.
2016-05-12 22:10:50 -04:00
Ibrahim Hadeed
62f71b2221 Merge pull request #122 from Barryrowe/master
Append Trailing Slash If Not Present On path Param
2016-05-12 22:06:53 -04:00
perry
df1cee1fc6 copy edits from @kgindervogel 2016-05-10 17:49:21 -05:00
Ibrahim Hadeed
06146b322f chore(tslint): add tslint & clean up code 2016-04-29 23:56:49 -04:00
Barry Rowe
ce2772b994 Append trailingSlash if not present on path param
In some cases the incoming ```path``` variable may not necessarily contain a trailing slash, but in cases where the directory path is manually built within the plugin this was not protected against. This shouldn't be a big issue if consumers are using ```cordova.file.*``` for the path params, but not all consumers may be using this.
2016-04-14 12:48:04 -04:00
Ignat Ignatov
96c47df151 Added implementation for readAsText() method. 2016-04-06 16:36:26 +02:00
Alexandre Papin
da1facab70 Add a few more methods and add documentation 2016-03-21 13:19:27 +01:00
Alexandre Papin
5c3613f338 Add wrapper for file plugin with some methods 2016-03-18 23:27:20 +01:00
Tim Lancina
3ce701cce7 chore(file): remove file for now 2016-02-17 15:33:17 -06:00
Max Lynch
dfef6dcfe8 refactoring 2015-11-29 19:54:45 -06:00