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
Ian Clelland
2309e0e76c
iOS: Fix error where files were not removed on abort
2014-03-28 10:36:01 -04:00
torrmal
223d08626d
[CB-5175] CDVFileTransfer asynchronous download ( Fixes #24 )
...
Since download can take time, for it to be non-blocking, moved the call to a separate thread.
2014-03-27 13:21:26 -04:00
Ian Clelland
449df55848
[ios] Cast id references to NSURL to avoid compiler warnings ( Fixes : apache/cordova-plugin-file-transfer#18 )
2014-03-21 11:23:11 -04:00
Ian Clelland
653ec00fa6
[ios] Cleanup extra semicolons
2014-03-21 11:23:01 -04:00
James Jong
0f84287df0
CB-6212 iOS: fix warnings compiled under arm64 64-bit
2014-03-13 09:27:01 -04:00
Archana Naik
c35ca1a5c2
Upleveled from android port with following commits:
...
3c1ff16 Andrew Grieve - CB-5762 android: Fix lengthComputable set wrong for gzip downloads
8374b3d Colin Mahoney - CB-5631 Removed SimpleTrackingInputStream.read(byte[] buffer)
6f91ac3 Bas Bosman - CB-4907 Close stream when we're finished with it
651460f Christoph Neumann - CB-6000 Nginx rejects Content-Type without a space before "boundary".
35f80e4 Ian Clelland - CB-6050: Use instance method on actual file plugin object to get FileEntry to return on download
2014-03-10 23:02:28 -07:00
Martin Hujer
70463c238a
Upload progress now works also for second file
...
- Sent bytes must be reseted before new upload, otherwise "onprogress" event "loaded" value provides sum of uploaded bytes (not just for the current upload, but all of them)
2014-03-08 22:33:37 +01:00
lmnbeyond
e76deb20d5
ios:Get file plugin via commandDelegate to avoid using global file plugin directly.
2014-02-25 10:34:11 +08:00
Andrew Grieve
0f8467bdfe
CB-6059 iOS: Add necessary @synchronized blocks for newly introduced multi-threading.
2014-02-19 11:49:24 -05:00
Jan Pittner
49b4774e7e
CB-6059 iOS: Stop FileTransfer.download doing IO on the UI thread.
2014-02-19 10:56:27 -05:00
Jan Pittner
a588236cbd
CB-2190 Make backgroundTaskId apply to downloads as well. Move backgroundTaskId to the delegate.
2014-02-19 10:38:37 -05:00
Andrew Grieve
a1d6fc07e8
Fix default value for trustAllHosts on iOS (YES->NO)
2014-02-19 10:21:33 -05:00