30 Commits

Author SHA1 Message Date
James Zhan
865f13ed0d bugfix 2017-11-20 15:39:14 +11:00
James Zhan
14a2c8db06 make sure response with error status code won't change downloaded file on iOS 2017-11-20 15:08:15 +11:00
Joseph Roque
11e8655d3d
Respect readTimeout for downloadFile on iOS 2017-11-09 18:33:21 -05:00
James Reggio
e086d24549 Expose the iOS discretionary flag on downloadFile 2017-10-06 11:48:41 -04:00
Hagen Hübel
d09cf0756d Merge pull request #245 from locly/master
[iOS] Cancelling download causes promise rejection to be called twice
2017-04-28 02:16:15 +02:00
Hagen Hübel
8bf52528c8 Merge pull request #243 from debitoor/set-statuscode-even-if-content-length-is-zero
set response statuscode even if content length is zero
2017-04-28 02:15:09 +02:00
Thomas Beverley
76981d0dba Merged upstream 2017-01-30 13:08:03 +00:00
dasha
9f4192f014 set response statuscode even if content length is zero 2017-01-24 14:43:39 +02:00
Chris Dell
e212728104 Merge pull request #214 from ghinwallc/bug-fix/use-existing-nsurlsessiontaskdelegate-method
Use existing NSURLSessionTaskDelegate method
2017-01-14 22:39:22 +00:00
Nathan Bolender
d904520e0c Added a state check for NSURLSessionDownloadTask in stopDownload:. This prevents trying to call the error callback after a success callback has already been called in downloadTask:didFinishDownloadingToURL:. 2016-12-13 22:31:37 -05:00
Thomas Beverley
ad65685db4 Update Downloader.m
Fix for when download is cancelled iOS
2016-12-08 14:11:30 +00:00
Thomas Beverley
189a8580b6 Update Downloader.m
Fixed network error callback on downloadFile by using existing NSURLSessionTaskDelegate method
2016-12-07 15:42:06 +00:00
Anna Strzeżek
a639f49c73 Return error only if exists. 2016-11-30 13:53:00 +01:00
Anna Strzeżek
a04d424112 Use existing NSURLSessionTaskDelegate method 2016-11-29 19:08:07 +01:00
Chris Dell
333de79eae Merge pull request #140 from IjzerenHein/feature-fix-duplicate-symbols
Fixed iOS duplicate symbol errors with other plugins
2016-08-09 21:44:01 +01:00
Chris Dell
03a61b681b stopDownload rejects promise 2016-08-02 19:38:22 +01:00
IjzerenHein
b26fb5fd8f Fixed symbol collision errors with other plugins by adding RNFS prefix to Download & Upload classes
The Uploader & Downloader classes cause linker errors with other plugins that also implement classes that are called Uploader or Downloader. E.g. this happens when using react-native-fs in combination with Firebase Crash reporting.
Basically both plugins are at fault for not implementing unique class names. This commit adds the RNFS prefix for these classes.
2016-07-21 09:59:37 +02:00
Chris Dell
8e1975a4e1 progressDivider now defaults to 0 2016-06-30 00:14:18 +01:00
Chris Dell
592eb73d1d Fix merge bug in downloader 2016-06-08 18:21:23 +01:00
Chris Dell
132fb4d6a0 Merge branch 'master' of https://github.com/kitolog/react-native-fs into kitolog-master 2016-06-08 17:52:08 +01:00
Chris Dell
9575ef9c27 downloadFile supports headers 2016-06-03 23:59:08 +01:00
Aaron Franks
a4db889003 Use UUID for background download identifier
See previous discussion on #100
2016-06-02 22:29:08 -07:00
Aaron Franks
3268c3dc89 Add JS API and docs for background downloads (#80) 2016-06-02 00:53:22 +01:00
Aaron Franks
a424e4e70d Finish migrating non-background downloads to the NSURLSession API 2016-06-02 00:52:47 +01:00
Aaron Franks
87149c2b57 First pass at native code to support background downloads 2016-06-02 00:52:47 +01:00
kitolog
14d6703b89 Fixed progressDivider implementation in ios code 2016-05-31 12:48:56 +03:00
kitolog
1bc9481a47 Added progressDivider 2016-05-31 12:46:03 +03:00
Chris Dell
feb0df0113 Manually merged uploadFiles 2016-05-30 23:13:50 +01:00
Chris Dell
b603084ce7 Refactored downloadFile, added stopDownload 2015-11-23 16:30:27 +00:00
Chris Dell
5fbeb83a66 iOS downloadFile implementation now async 2015-11-19 00:21:51 +00:00