Commit Graph

102 Commits

Author SHA1 Message Date
Jesse MacFadyen f1e41ac1f5 fix failing test resulting from overlapping async calls 2015-05-11 17:47:08 -07:00
Jesse MacFadyen 65eea291b2 fix merge 2015-05-08 17:23:17 -07:00
Vladimir Kotikov 3effd7f1fe CB-8931 Replace all slashes in windows path 2015-05-07 09:23:48 +03:00
alsorokin e5c25b6bc7 CB-8951 Fixed crash related to headers parsing on wp8 2015-05-05 15:48:15 +03:00
Dan Polivy 4f7e1566bd CB-6313 [wp8]: Extra boundary in upload
When performing an upload on Windows Phone, an extra boundary is
included after any parameters, and before the file contents. This causes
some servers (such as express/multiparty on node.js) to fail to handle
the request properly.

This commit removes the extraneous boundary.

Fixes https://issues.apache.org/jira/browse/CB-6313

github close #73
2015-04-25 15:06:48 -07:00
Dan Polivy 75d55ddaaa CB-8761 [wp8]: Copy cookies from WebBrowser
On other platforms, the cookies from the browser that apply to the
request are automatically included. On WP8, that's not the case.

This commit will copy the cookies from the WebBrowser control, if the
scheme and host of the WebBrowser match that of the HttpWebRequest. For
users who host their web components remotely, and perform
uploads/downloads from the same server using cookie based
authentication, this fix enables that scenario on WP8, and brings it up
to parity with iOS, Android, and others.

Fixes https://issues.apache.org/jira/browse/CB-8761

CB-8761 [wp8]: Cleanup per comments

github close #74
2015-04-25 15:03:23 -07:00
alsorokin 8e22d5a6b0 CB-8641 Fixed tests to pass on windows and wp8 2015-04-08 13:09:12 +03:00
Vladimir Kotikov 918b2cf8d2 CB-8583 Forces download to overwrite existing target file 2015-04-02 13:43:07 +03:00
Vladimir Kotikov 6ed66a4f29 CB-8589 Fixes upload failure when server's response doesn't contain any data 2015-04-02 13:41:12 +03:00
Steve Gill 0530d90fb0 CB-8683 changed plugin-id to pacakge-name 2015-04-01 19:11:23 -07:00
Jan Visser 569568f8b4 Replace all slashes in windows path
Instead of just the first one
2015-04-01 12:50:37 +02:00
Vladimir Kotikov 21fb03aa9c CB-8721 Fixes incorrect headers and upload params parsing on wp8 2015-03-24 11:46:51 +03:00
alsorokin 3ff8382929 CB-8590 (Windows) Fixed download.onprogress.lengthComputable
github close #67
2015-03-05 12:24:57 +03:00
Vladimir Kotikov 314677c0c3 Fixes typo, introduced in https://github.com/apache/cordova-plugin-file-transfer/commit/bc43b46 2015-02-11 17:46:04 -08:00
Vladimir Kotikov 5ee666ce0b CB-8407 Use File proxy to construct valid FileEntry for download success callback
Due to changes in file plugin (https://github.com/apache/cordova-plugin-file/commit/bcbeae24cd24583b790da95e0e076492eb16cd4f) result of download method should now have filesystemName specified for proper work. This updates download method to construct FileEntry properly, using File plugin proxy.
2015-02-11 17:46:03 -08:00
Vladimir Kotikov 28189e54f3 CB-8407 Removes excess path to native path conversion in download method
This fixes file transfer download tests failures, when target file is specified by ms-appdata:/// uri on Windows.
2015-02-11 17:46:03 -08:00
Vladimir Kotikov 837771c4c6 CB-8095 Fixes JSHint and formatting issues 2015-02-11 17:46:00 -08:00
Vladimir Kotikov e781bceba7 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-02-11 17:45:59 -08:00
Kelly Campbell 0aae94495f android: Fix error reporting for unknown uri type on sourceUri instead of targetUri 2015-01-31 22:34:33 -05:00
Darryl Pogue c12f1eb9be CB-5059 Add a CookieManager abstraction for pluggable webviews (close #60)
This allows FileTransfer to correctly use webview cookies regardless of
which webview engine is in use.
2015-01-30 10:19:34 -05:00
Andrew Grieve adf0816544 ios: Fix compile warning about implicity int conversion 2015-01-27 11:32:58 -05:00
Andrew Grieve 24a26d235b CB-8351 Use argumentForIndex rather than NSArray extension 2015-01-23 09:49:20 -05:00
Andrew Grieve 2b111a229d CB-8351 Use a local copy of DLog macro rather than CordovaLib version 2015-01-22 15:28:06 -05:00
Edna Morales 6db2820258 CB-8296 ios: Fix crash when upload fails and file is not yet created (close #57) 2015-01-13 20:24:28 -05:00
Jesse MacFadyen 046e9ae59a fix merge issue with cleanUrl 2015-01-06 13:28:57 -08: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
Vladimir Kotikov 80aa828021 CB-8093 Fixes incorrect FileTransferError returned in case of download failure 2014-11-27 18:32:34 +03:00
Ian Clelland 674c3ae180 CB-7912: Update to work with whitelist plugins in Cordova 4.x 2014-11-14 11:23:07 -05: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
Jesse MacFadyen affb5ec0a6 Remove dupe file windows+windows8 both use the same one 2014-08-20 11:59:40 -07: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
Javier Puerto b88584c5a3 CB-6928: Handle 304 status code 2014-07-08 14:14:12 -04:00
Javier Puerto 22f1ea573c CB-6928: Open output stream only if it's necessary. 2014-07-08 14:14:12 -04:00
Ian Clelland 32106e7a3f CB-6781: Continue previous commit with one new instance (This closes #30) 2014-06-11 16:35:13 -04:00
ignisvulpis 46f9c1d458 CB-6781: add the exception text to the error object 2014-06-11 16:33:39 -04:00
Ian Clelland 690824248c CB-6890: Fix pluginManager access for 4.0.x branch 2014-06-06 14:27:57 -04:00
Maxim Ermilov c5d5c9e2bf ubuntu: support 'cdvfile' URI 2014-06-03 20:26:59 +04:00
Jesse MacFadyen 156ae2092e Merge branch 'wp8-loaded' of https://github.com/mhujer/cordova-plugin-file-transfer 2014-05-27 15:09:54 -07:00
Andrew Grieve 67ae8d8852 CB-6378 Use connection.disconnect() instead of stream.close() for thread-safety 2014-05-06 10:25:01 -04:00
Jesse MacFadyen 77e83c70dd Merge branch 'wp8-file-transfer' of https://github.com/stacic/cordova-plugin-file-transfer 2014-04-28 10:53:27 -07:00
Andrew Grieve 98e5da556f CB-6494 android: Fix upload of KitKat content URIs
FileTransfer was double-decoding the source URL.
2014-04-22 22:16:53 -04:00
Staci 2043b4e8b0 CB-6466 Auto-create directories in download
Bringing WP8 in line with the other platforms to automatically create
missing directories in filetransfer.download().
2014-04-22 13:40:56 -04:00
Dov Dukes 355ed3897d cleanUrl needs relative path for local download 2014-04-02 16:54:48 -04:00