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
Steven Gill
4c259e7a14
Merge branch 'dev' of https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer into dev
2013-11-26 16:52:17 -08:00
Ian Clelland
2f1411f5dc
CB-5466: Update FileTransfer plugin to accept filesystem urls
2013-11-22 10:31:38 -05:00
Maxim Ermilov
4219ef3f81
add ubuntu platform
2013-11-13 09:54:59 +04:00
Archana Naik
a80ae0417b
Added amazon-fireos platform.
...
Change to use amazon-fireos as the platform if the user agen string contains 'cordova-amazon-fireos'
2013-10-30 13:20:08 -07:00
Viras-
8cfb8a2568
fixing base64 helper function clobber for wp7
...
[CB-4668] fixing FileTransfer code to work in wp7 and be safe for headers which contain ':'
2013-09-13 18:38:48 +02:00
purplecabbage
6bd367c512
fixed merge anomaly error
2013-09-12 17:24:09 -07:00
purplecabbage
6eaa2efcd0
add atob+btoa for wp7 only fixes FileTransfer issues
2013-09-11 18:39:51 -07:00
purplecabbage
d1008917c1
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer
2013-09-11 18:29:44 -07:00
purplecabbage
55b026b563
[wp8] added progress events and fixed failing tests
2013-09-05 17:51:54 -07:00
Viras-
95fa68041e
[CB-4668] WP8 FileTransfer works with the standard JS implementation. Fixing error in parsing of HTTP params which causes sub-JSON objects to not work
2013-09-05 07:00:38 +02:00
Andrew Grieve
a59755ec72
[CB-4480] Fix up a couple Unsigned->Signed mistakes from previous commit.
...
Also - thanks to Klaus Schmidt for the original patch for this fix.
2013-08-14 15:33:19 -07:00
Andrew Grieve
fbbfff122a
[CB-4480] Using 64 bit ints to store file size
2013-08-14 15:33:18 -07:00
Andrew Grieve
9a125991f7
[CB-4417] Move cordova-plugin-file-transfer to its own Java package.
2013-08-14 15:33:18 -07:00
Andrew Grieve
a83011685d
Fix NPE in mobile-spec Upload of an unknown host test.
...
Was happening over cell connection.
2013-08-14 15:33:18 -07:00
purplecabbage
d189aacf9a
fixed numerous wp issues
2013-07-17 00:56:12 -07:00
Jesse MacFadyen
c44678466c
WIP, fixed param handling
2013-07-17 00:56:11 -07:00
Andrew Grieve
d29f2b044b
[android] [CB-3384] Make FileTransfer use CordovaResourceApi.
2013-07-16 11:05:34 -04:00
Max Woghiren
fd6ef121ae
[CB-1605] Warning cleanup! Closed an input stream.
...
Also removed imports.
2013-07-11 17:44:58 -04:00
Andrew Grieve
f1c7749382
Use UriResolvers in FileTransfer. Fixes mobile-spec test where source is a file:// URL.
2013-07-10 15:14:00 -04:00
Ian Clelland
e4559a21d7
[CB-3430] [CB-1413] Remove Old (2.3.3) HTTP Workaround
...
Cherry-picked from 2.x branch of cordova-android [01946dd4]
2013-07-10 12:01:04 -04:00
Andrew Grieve
cdb45cd931
[CB-4038] - Remove o.a.c.api namespace
2013-07-10 09:31:32 -04:00
Jesse MacFadyen
aedea91307
[CB-4118] remove dupe code
2013-07-08 15:46:03 -07:00
Benn Mapes
2b29093423
[CB-3729] first pass wp8 support
2013-06-24 15:25:23 -07:00
Steven Gill
54684892ec
fixed mistake in ios references
2013-06-18 16:36:11 -07:00
Steven Gill
5ac7d84736
updated ios references, added docs & tests
2013-06-18 16:34:22 -07:00
Benn Mapes
26b4948cd3
[CB-3728] first pass wp7 support
2013-06-14 15:45:16 -07:00
hermwong
81cf31677f
added iOS files
2013-06-14 10:59:53 -07:00