Ibby Hadeed
af4d5e8968
Revert "fix(File): typing where FileError
can be thrown" ( #1130 )
2017-03-01 21:24:34 -05:00
Jan
2fba915b88
fix(file): platform Browser will raise a an DOMException ( #1082 )
...
fix(File): Platform Browser will raise a an DOMException on resoleLocalFilesystemUrl and tries to write on readonly property DOMException err.message in fillErrorMessage
2017-03-01 20:58:09 -05:00
Vegard Andreas Larsen
c1748bbc28
fix(file): remove FileError from return type ( #1086 )
...
Promises that reject with a `FileError` are not of the type `Promise<T|FileError>`, but `Promise<T>`.
The previous declarations of `Promise<T|FileError>` would break typing further down the chain where you are trying to use the value that the typing says could be `T|FileError` but in reality could only be `T`.
2017-03-01 20:56:21 -05:00
Ibby
f0e219570e
feat(file): add system paths
2017-03-01 20:26:55 -05:00
Michael Nishikawa
f22874342a
refactor(file): accept ArrayBuffer for data to write ( #1109 )
2017-02-23 18:56:26 -05:00
Josep Sayol
23b97f6b4a
fix(file): add missing exports ( #1101 )
...
Any declaration that is not being exported is missing from the resulting d.ts declaration files.
2017-02-23 03:54:57 -05:00
Attila Oláh
d8892e195b
docs(file): clarify what unit getFreeDiskSpace returns with ( #981 )
2017-01-18 10:30:38 -05:00
Alex Muramoto
3da2831779
docs(all): standardizes and adds return types, also some param fixes
2016-11-29 16:40:50 -06:00
Ibby Hadeed
fd0ac37ffc
refractor(file): property filesystem of Entry is lowercase
...
fixes #720
2016-11-24 05:28:53 -05:00
Ibby Hadeed
9bd8997a31
fix(file): correct writeFile flags
...
fixes #789
2016-11-24 05:22:04 -05:00
Ibby Hadeed
156328c9de
refractor(): change return type of writeFile
2016-11-24 05:19:12 -05:00
Ibby Hadeed
24184a5a6a
chore(): tslint
2016-11-23 08:23:55 -05:00
Sergii Stotskyi
867400d1ac
refactor(file): add return value to be updated file entry in writeFile method
...
Also remove code duplication in writeExistingFile
2016-11-03 06:16:08 +02:00
Max Lynch
71916a85dd
fix(plugin): don't bind to name field. Fixes #740
2016-10-27 12:48:50 -05:00
Ibby
55b6ab9c54
refractor(file): remove pluginMeta variable
2016-10-27 07:24:19 -04:00
Max Lynch
96776567eb
feat(plugins): add name field
2016-10-17 20:38:25 -05:00
Ramon Henrique Ornelas
43c8592b40
style(file): fix angular style ( #685 )
2016-10-12 19:52:27 -07:00
Ibby
5cfb3b033b
refractor(): remove unused import
2016-10-11 21:02:53 -04:00
Ibby
276d61bf3a
fix(file): read methods can accept Blobs too
2016-10-11 20:48:53 -04:00
Ibby
397a209ad2
docs(file): improve docs
2016-10-11 20:46:05 -04:00
Ibby
d2f42ef33a
fix(file): getFreeDiskSpace now works
2016-10-11 20:44:27 -04:00
Ibby
fe46907aaa
docs(file): document getFreeDiskspace
2016-10-11 20:39:26 -04:00
Ibby
5c92455ee9
feat(file): getFile and getDirectory are now public
...
closes #657
2016-10-11 20:30:14 -04:00
Ibby
542ff4cf95
feat(file): resolveLocalFilesystemUrl and resolveDirectoryUrl are now public methods
...
closes #657
2016-10-11 20:16:39 -04:00
Ibby
5710eb78a8
fix(file): last parameter for writeFile now only accepts options
2016-10-11 20:13:21 -04:00
Ibby
842a80d493
fix(file): fix writeFile method
...
addresses #464 #552 #666
2016-10-11 20:10:47 -04:00
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