shamilovtim closed pull request #198: Updated README for Android file uploads.
URL: https://github.com/apache/cordova-plugin-file-transfer/pull/198
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/README.md b/README.md
index b637446..fecb881 100644
--- a/README.md
+++ b/README.md
@@ -103,7 +103,7 @@ __Parameters__:
   - __httpMethod__: The HTTP method to use - either `PUT` or `POST`. Defaults 
to `POST`. (DOMString)
   - __mimeType__: The mime type of the data to upload.  Defaults to 
`image/jpeg`. (DOMString)
   - __params__: A set of optional key/value pairs to pass in the HTTP request. 
(Object, key/value - DOMString)
-  - __chunkedMode__: Whether to upload the data in chunked streaming mode. 
Defaults to `true`. (Boolean)
+  - __chunkedMode__: Whether to upload the data in chunked streaming mode. 
This must be set to false in order to upload an image on Android. Defaults to 
`true`. (Boolean)
   - __headers__: A map of header name/header values. Use a hash to specify one 
or more than one value.  On iOS, FireOS, and Android, if a header named 
Content-Type is present, multipart form data will NOT be used. (Object)
 
 - __trustAllHosts__: Optional parameter, defaults to `false`. If set to 
`true`, it accepts all security certificates. Not recommended for production 
use. Supported on iOS. _(boolean)_
@@ -200,6 +200,10 @@ A `FileUploadResult` object is passed to the success 
callback of the
 
 - Does not support uploads of an empty file with __chunkedMode=true__ and 
`multipartMode=false`.
 
+### Android Quirks
+
+- Does not support uploads without explicitly specifying __chunkedMode=false__.
+
 ### Browser Quirks
 
 - __withCredentials__: _boolean_ that tells the browser to set the 
withCredentials flag on the XMLHttpRequest


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to