27 Commits

Author SHA1 Message Date
Ibrahim Hadeed
550b8289c9
reafractor(file): add types to promises 2016-09-06 23:33:51 -04:00
Ibrahim Hadeed
7910493a6c
fix(file): set exclusive to true when replace is false
closes #516
2016-09-06 22:24:34 -04:00
Ramon Henrique Ornelas
393e9d0e00 feat(file): allows writeFile and writeExistingFile to accept Blob (#527) 2016-09-06 21:54:35 -04:00
Sergii Stotskyi
bbbd0d52e9 feat(file): adds chunked blob writing (#529)
This prevents devices crashing when user picks a big file to write
2016-09-06 21:53:42 -04:00
Ramon Henrique Ornelas
54460e2362 style(): fix angular styles (#512)
* style(canva-camera): fix angular style

* style(crop): fix angular style

* style(file-chooser): fix angular style

* style(file-opener): fix angular style

* style(file): fix angular style

* style(inappbrowser): fix angular style

* style(instagram): fix angular style

* style(is-debug): fix angular style

* style(native-page-transitions): fix angular style

* style(market): fix angular style

* style(music-controls): fix angular style

* style(nfc): fix angular style

* style(pay-pal): fix angular style

* style(power-management): fix angular style

* style(securestorage): fix angular style

* style(streaming-media): fix angular style

* style(video-editor): fix angular style

* style(youtube-video-player): fix angular style
2016-08-31 17:02:15 -04:00
Ramon Ornelas
e34c25b490 docs(file): fix methods private exposed 2016-08-30 14:45:52 -03:00
Ibrahim Hadeed
a4798b81a8
refracto(): tslint 2016-08-26 12:33:28 -04:00
David Störcher
eff7841ec2 fix(File): fixed readFileAs (#479)
* Fix(File): Fixing readFileAs

https://developer.mozilla.org/de/docs/Web/API/FileReader --> FileReader expects File and not FileEntry.

* Fix(File): Fixing readFileAs

refactoring to arrow Functions
2016-08-26 09:22:59 -04:00
Ramon Henrique Ornelas
ed8c67ce7e chore(): tslint (#466)
* fix src tslint gulp ionic

* - fix errors tslint
2016-08-22 18:19:43 -04:00
Robert Coie
16628a49f7 fix(file): initialize writeFile options (#468) 2016-08-22 18:18:53 -04:00
David Störcher
14e41a31ef fix(file): fixes exclusive option (#459)
Exclusive means that the file will not be Overridden so it has to be set if replace is False.
2016-08-19 09:07:32 -04:00
Alex Muramoto
62bcd313e3 docs(file): adds Entry to types returned in File.moveDir promise (#456) 2016-08-19 07:06:17 -04:00
Jochen Bedersdorfer
abd706f435 refractor(file): additions to documentation and type definitions for File plugin (#446)
* Additions to documentations and type definitions

Added return types to documentation as well as modified return type definition to match actual types returned.
Used union types for promises where applicable.

Builds and gulp docs ok.

* Update file.ts
2016-08-17 03:11:10 -04:00
Ibrahim Hadeed
6ed32efe27 feat(file): alternate file implementation (#283)
* alternate file implementation

* SocialSharing: Add recommended `shareWithOptions` method

* Revert "SocialSharing: Add recommended `shareWithOptions` method"

* refactor(file): tslint & remove window declaration

* export all from file

* remove the cordova export and declaration
2016-08-11 07:21:02 -04:00
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