Commit Graph

39 Commits

Author SHA1 Message Date
Tim Brust 64bfd154b3 fix(ios): re-implement user agent overwrite (#268)
This closes #263 #258
2020-08-25 23:44:32 +02:00
Luca Torella fba018ef65 Removed warning
Just a small change to avoid a warning
2017-07-11 16:20:48 -07:00
Nikita Matrosov e9d93c0a54 CB-10696 iOS: Encode target path with spaces 2017-04-06 16:27:07 +03:00
daserge 5a711e8722 CB-12154 file-transfer progressEvent.total = -1 on iOS
Makes chunkedMode=true uploads to contain Content-Length to make progress computable
2016-12-06 17:06:00 +03:00
daserge 9347606dd3 CB-10974 Cordova file transfer Content-Length header problem
Fixed iOS logic to not to include Content-Length when chunkedMode=true
Fixed Android logic preventing chunkedMode to be enabled for http uploads
Added tests for chunkedMode
Documented chunkedMode not supported on Windows
Documented Uploading of an empty file is not supported for chunkedMode=true and multipart=false for iOS, pended the corresponding test
2016-05-17 12:24:27 +03:00
daserge 182b0c5ebe CB-9837 Add data URI support to file-transfer upload on iOS
Adds iOS and Windows implementation; mention in the docs
Adds corresponding tests
Increases spec.35 timeout for Windows Phone 8.1 case as it contains 2 download operations
2015-12-14 16:58:18 +03:00
FF Xu e14b7e5391 CB-9840 Fallback file-transfer upload/download response encoding to latin1 in case not encoded with UTF-8 on iOS 2015-12-04 13:26:33 +03:00
daserge fe81475829 CB-9969 Filetransfer upload error deletes original file
Adds back the iOS check
2015-11-30 11:03:10 +03:00
daserge 6e960b2ffd CB-9969 Filetransfer upload error deletes original file
Reverts iOS changes
2015-11-27 10:53:34 +03:00
daserge c97f544ef8 CB-9969 Filetransfer upload error deletes original file
Adds corresponding test and fixes for iOS and Windows
Also fixes filetransfer.spec.9, which used an incorrect path in the root.getFile call.
2015-11-26 23:07:04 +03:00
Jesse MacFadyen 9e93bad83c CB-8863 fix block usage of self 2015-11-19 17:02:35 -08:00
daserge 189942284a CB-6928 Wrong behaviour transferring cacheable content
Adds support of 304 handling for iOS, Windows and adds a corresponding test
2015-11-11 09:46:17 +03:00
jason-ong f8b0f82dfa CB-9790 Align FileUploadOptions fileName and mimeType default parameter values to the docs on iOS
To match the documentation for FileUpload,
change fileName default value to "image.jpg"
change mimeType default value to "image/jpg"

github: close #98
2015-10-15 22:55:20 +03:00
Ganster41 c0b3122e74 CB-9385 Return FILE_NOT_FOUND_ERR when receiving 404 code on iOS 2015-10-15 19:14:24 +03:00
Michael Chen 04f088b6c9 CB-6503: Allow payload content-types other than multipart/form-data to be used for upload 2015-06-08 15:09:24 -04: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
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
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
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
Ian Clelland 4ca546b3d8 iOS: Update for new file plugin api 2014-01-23 22:37:27 -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
Ian Clelland 2f1411f5dc CB-5466: Update FileTransfer plugin to accept filesystem urls 2013-11-22 10:31:38 -05: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
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
hermwong 81cf31677f added iOS files 2013-06-14 10:59:53 -07:00