Re: NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x

2009-09-27 Thread Sergey Shapovalov
Hello again. It looks like I've got more info on the issue. I've performed some additional investigation and figured out that if you substitute the lines NSInputStream* stream = [NSInputStream inputStreamWithFileAtPath: filePath]; [request setHTTPBodyStream: stream]; with

Re: NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x

2009-09-27 Thread Jens Alfke
On Sep 27, 2009, at 2:25 AM, Sergey Shapovalov wrote: This makes me think that chunked upload from stream via NSURLConnection has been broken in iPhone OS 3.x. Unfortunately, in real life I can't upload my file by using setHTTPBody instead of setHTTPBodyStream because it's too big to

Re: NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x

2009-09-27 Thread Sergey Shapovalov
Jens, thank you for your answer. On Sep 27, 2009, at 7:59 PM, Jens Alfke wrote: On Sep 27, 2009, at 2:25 AM, Sergey Shapovalov wrote: This makes me think that chunked upload from stream via NSURLConnection has been broken in iPhone OS 3.x. Unfortunately, in real life I can't upload my

NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x

2009-09-26 Thread Sergey Shapovalov
Hello. I'm using a very simple code snippet to upload a small file to my MobileMe iDisk. The problem is that it perfectly works with iPhone OS 2.2.1, but fails on 3.0. Now I'm trying to figure out whether that's a bug in iPhone OS 3.0, or I am doing something wrong and 2.2.1 is just more