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
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
Ian Clelland
35f80e42ec
CB-6050: Use instance method on actual file plugin object to get FileEntry to return on download
2014-02-18 15:25:01 -05:00
Daniel Heffernan
28fb0a7c4d
CB-5588 iOS: Add response headers to upload result
...
This change adds the HTTP response headers to the result for successful
uploads.
2014-02-10 14:58:37 -05:00
Christoph Neumann
651460fb6b
CB-6000 Nginx rejects Content-Type without a space before "boundary".
...
From: https://github.com/apache/cordova-plugin-file-transfer/pull/6
2014-02-10 13:30:27 -05:00
Bas Bosman
6f91ac3a30
CB-4907 Close stream when we're finished with it
2014-02-10 13:26:43 -05:00
Jesse MacFadyen
d3b21b35fc
CB-5365 Remove unused exception var to prevent warnings?
2014-02-04 15:23:02 -08:00
Ian Clelland
4ca546b3d8
iOS: Update for new file plugin api
2014-01-23 22:37:27 -05:00
Colin Mahoney
8374b3dd67
CB-5631 Removed SimpleTrackingInputStream.read(byte[] buffer)
...
InputStream.read(byte[] buffer) calls InputStream.read(byte[] bytes, int
offset, int count). As SimpleTrackingInputStream overrides both these
methods a call to SimpleTrackingInputStream.read(byte[] buffer) results
in a call to SimpleTrackingInputStream.read(byte[] bytes, int offset,
int count) - and two calls to SimpleTrackingInputStream.updateBytesRead,
so the counter bytesRead gets incremented twice for each read.
2014-01-10 12:16:26 -05:00
Andrew Grieve
3c1ff16064
CB-5762 android: Fix lengthComputable set wrong for gzip downloads
...
Gzip + no Content-Length header should be lengthComputable=false
2014-01-10 11:45:59 -05:00
Ian Clelland
647dad7aba
CB-5466: Update to work with filesystem URLs
...
This should be backwards compatible; raw filesystem paths are now submitted to
the File plugin to see if they can be handled first
2013-12-10 21:58:36 -05:00
Ian Clelland
4c11f54bd5
CB-5466: Partial revert; we're not ready yet for FS urls
2013-12-04 16:10:00 -05:00
Steven Gill
fee10fb6d8
added ubuntu support
2013-12-02 16:12:45 -08:00