Re: Android Cordova FileTransfer.upload generates 503 errors with some web servers.

2012-12-06 Thread Simon MacDonald
How odd but I have no choice but to believe in Google :) Still I wish I would have seen these in the docs when I was writing the initial code back in Android 2.x days. It would have made my life a lot easier. Simon Mac Donald http://hi.im/simonmacdonald On Wed, Dec 5, 2012 at 10:53 PM, Andrew

Re: Android Cordova FileTransfer.upload generates 503 errors with some web servers.

2012-12-05 Thread Andrew Grieve
I looked at switching to HttpClient when fixing some of the Android FT bugs a while ago. According to this blog post (by an Android dev), HttpURLConnection is recommended for gingerbread+. http://android-developers.blogspot.ca/2011/09/androids-http-clients.html On Wed, Dec 5, 2012 at 9:55 PM, Si

Re: Android Cordova FileTransfer.upload generates 503 errors with some web servers.

2012-12-05 Thread Simon MacDonald
Oh my crap. I swear this was not documented when I worked on the original File Transfer code for Android. The entire FileTransfer plugin can be re-written now to use actual tested code. The only thing we need do is to keep the old method signatures. If you are looking for me I'll be over in the co

Re: Android Cordova FileTransfer.upload generates 503 errors with some web servers.

2012-12-05 Thread Brian M Dube
On 10/30/2012 07:53 AM, Simon MacDonald wrote: > I would have loved to have used the Apache HttpClient package but we are > trying to stay away from external dependencies. Apache HttpClient is available to applications as part of the Android platform, isn't it? Perhaps I've misunderstood. org.apa

Re: Android Cordova FileTransfer.upload generates 503 errors with some web servers.

2012-10-30 Thread Simon MacDonald
I would have loved to have used the Apache HttpClient package but we are trying to stay away from external dependencies. When you set chunkedMode to false I know that the transfer worked as per your comment on JIRA. I will update the docs to mention Nginx servers. Simon Mac Donald http://hi.im/si