Commit Graph

453 Commits

Author SHA1 Message Date
Vladimir Kotikov
18f3efdad2 CB-8095 Rewrite upload method to support progress events properly
* Uses backgroundUploader class instead of XHR
* Returns proper response body in case of error
2015-01-08 16:50:15 +03:00
Jesse MacFadyen
046e9ae59a fix merge issue with cleanUrl 2015-01-06 13:28:57 -08:00
Andrey Kurdyumov
2527338f43 Document "body" property on FileTransferError 2015-01-05 14:23:53 +06:00
Ian Clelland
2bfbd2c782 CB-8125: Fix spec tests 28 and 29
These tests had long been failing (silently). The refactor for CB-8125
surfaced those failures, and so this fixes them.
2014-12-17 11:08:46 -05:00
Dmitry Blotsky
fc8f4f0001 CB-8125: Reorganize and clean up test suite.
Audited all calls to done() to ensure correct async execution. Removed some redundant code. Removed depencency on mobile-spec: tests now run even if started independently. Tested without plugin-test-framework and with it, on Windows, iOS, and Android.

Made deleteFile and writeFile raise real errors when they encounter real problems; otherwise, made their logging sound less threatening. Fixed spec.17, using localFilePath instead of fileName.

Fixed issue with pending() throwing errors when being called in an async 'unsupported' callback by calling it in afterEach. Also made log messages slightly more informative.

This closes #55
2014-12-17 11:08:27 -05:00
Ian Clelland
169c8b7cb8 Merge branch 'unplug-whitelist' 2014-12-12 07:48:43 -05:00
Jesse MacFadyen
e6e44aaa2f removed unneeded String() casting all over the place, fixed my own missing ) error 2014-12-05 16:13:49 -08:00
Jesse MacFadyen
71bd73ec9c exec guarentees that proxy is called with success/error function so there is no need to constantly check that it exists 2014-12-05 15:58:16 -08:00
Jesse MacFadyen
7fbab9fa1c Error callback should always be called with the FileTransferError object, and not just the code 2014-12-05 15:51:58 -08:00
Jesse MacFadyen
cea07c08d5 alias appData to Windows.Storage.ApplicationData.current 2014-12-05 15:40:02 -08:00
Jesse MacFadyen
941e81ef22 Alias FileTransferError to FTErr to save some horizontal space 2014-12-05 15:24:46 -08:00
Jesse MacFadyen
c0fd1a3f46 Merge branch 'CB-8014' of https://github.com/marti1125/cordova-plugin-file-transfer 2014-12-05 12:28:49 -08:00
Jesse MacFadyen
f415f35c20 Merge branch 'CB-8093' of https://github.com/MSOpenTech/cordova-plugin-file-transfer 2014-12-05 12:22:21 -08:00
Steve Gill
7ee3bcaf53 CB-8110 Incremented plugin version. 2014-12-02 16:08:50 -08:00
Steve Gill
04e114e055 CB-8110 Updated version and RELEASENOTES.md for release 0.4.8 2014-12-02 16:07:02 -08:00
Ian Clelland
25de5332cd Merge branch 'CB-4674' 2014-11-27 14:29:58 -05:00
Ian Clelland
47d8f18663 Merge branch 'CB-8021' 2014-11-27 14:28:16 -05:00
Ian Clelland
6c253e832d Merge branch 'fixtests' 2014-11-27 14:24:58 -05:00
Vladimir Kotikov
80aa828021 CB-8093 Fixes incorrect FileTransferError returned in case of download failure 2014-11-27 18:32:34 +03:00
Willy Aguirre
27c01daf00 update array 2014-11-26 11:44:19 -05:00
Lucas Gonze
77a812a95b Fixes #CB-8021 - adds documentation for httpMethod to doc/index.md. However, translations still need to be addressed. 2014-11-25 16:26:48 -08:00
Ian Clelland
674c3ae180 CB-7912: Update to work with whitelist plugins in Cordova 4.x 2014-11-14 11:23:07 -05:00
maria.bukharina
6fee835928 CB-7944 Pended unsupported auto tests for windows
This closes #48
2014-11-14 11:16:48 -05:00
Josh Soref
60b020e593 CB-7977 Mention deviceready in plugin docs 2014-11-12 12:43:03 -05:00
Kiran
4879a09553 Fix for https://issues.apache.org/jira/browse/CB-4674
https://issues.apache.org/jira/browse/CB-4674
2014-10-28 22:02:25 +05:30
Victor Sosa
aebe887ffe CB-7700 cordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer 2014-10-15 15:20:34 -04:00
Ian Clelland
d63c274041 Merge branch 'master' of https://github.com/sosahvictor/cordova-plugin-file-transfer 2014-10-06 14:56:54 -04:00
Steven Gill
7cfde19cac Incremented plugin version. 2014-10-03 17:09:46 -07:00
Steven Gill
d0d8698af1 Updated version and RELEASENOTES.md for release 0.4.7 2014-10-03 16:10:12 -07:00
Victor Sosa
8ae7ab0591 CB-7700 cordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer 2014-10-02 18:12:05 -05:00
purplecabbage
e30057678b Merge branch 'CB-7529' of https://github.com/MSOpenTech/cordova-plugin-file-transfer 2014-09-17 14:44:51 -07:00
Marcel Kinard
edcdfebf02 CB-7571 Bump version of nested plugin to match parent plugin 2014-09-17 16:27:15 -04:00
Marcel Kinard
8391656b49 CB-7571 Incremented plugin version. 2014-09-17 15:35:01 -04:00
Marcel Kinard
16249c2f7a CB-7571 Updated version and RELEASENOTES.md for release 0.4.6 2014-09-17 15:27:41 -04:00
Lisa Seacat DeLuca
58a60f1bf3 CB-7471 cordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer 2014-09-15 17:26:09 -04:00
Vladimir Kotikov
223191f9bc Construct proper FileEntry with nativeURL property set 2014-09-12 16:02:31 +04:00
Vladimir Kotikov
2b86a85c74 CB-7532 Handle non-existent download dirs properly 2014-09-12 16:02:31 +04:00
Vladimir Kotikov
49c57d27b3 CB-7529 Adds support for 'ms-appdata' URIs for windows 2014-09-12 10:10:33 +04:00
Lisa Seacat DeLuca
d1642de655 CB-7249 cordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer 2014-09-04 22:30:55 -04:00
Edna Morales
38d35c291f CB-7423 fix spec28,29 lastProgressEvent not visible to afterEach function 2014-09-02 17:07:35 -04:00
Staci Cooper
807dbdd371 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer into fixtests 2014-09-02 14:42:49 -04:00
Archana Naik
82ad25e2c0 Amazon related changes. 2014-08-28 12:07:06 -07:00
Jesse MacFadyen
affb5ec0a6 Remove dupe file windows+windows8 both use the same one 2014-08-20 11:59:40 -07:00
Jesse MacFadyen
f7d5846395 Merge branch 'CB-7316' of https://github.com/MSOpenTech/cordova-plugin-file-transfer 2014-08-20 11:21:51 -07:00
Edna Morales
6f9b59fd88 added documentation for new test 2014-08-18 13:39:29 -04:00
Edna Morales
e1afbb6d24 rebase from master 2014-08-18 11:59:20 -04:00
Vladimir Kotikov
05f2e7737d CB-7316 Updates docs with actual information. 2014-08-18 10:07:50 +04:00
Vladimir Kotikov
ad0382e24c CB-7316 Adds support for Windows platform, moves *Proxy files to proper directory. 2014-08-18 10:07:50 +04:00
Vladimir Kotikov
f92244aff9 CB-7316 Improves current specs compatibility:
* Update handling credentials routine, replace parsing with Uri object by regexp parsing due to security errors in Windows.
* Add support to aborting download/upload operations for windows platform.
* Add support of progress events for download/upload operations for windows platform.
  - progress event object for upload operation is always empty, due to Windows restrictions.
* Fix multiple errors with handling invalid URLs and paths.
* Fix error callbacks in download/upload methods. Now they called with proper Error objects.
2014-08-18 10:07:49 +04:00
Michal Mocny
b5d1dffc2f CB-6466 Fix failing test due to recent url change 2014-08-15 15:00:34 -04:00