Commit Graph

30 Commits

Author SHA1 Message Date
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