title: Unable to upload image on Webdav Server. iPhone sdk
body: <p>I have just downloaded the WTClient from <a href="http://code.google.com/p/wtclient/" rel="nofollow">here</a>. It is used for connecting WebDav Servers through iOS. </p>
  
  <p>What I am doing here is to upload a .png file. So, I downloaded its sample app and updated it with mine credentials but all in vain. I am facing lots of difficulties in acheiving this. And I don't know what would be going wrong?</p>
  
  <p>Code is as follows : </p>
  
  <p><strong>Upload Btn Action</strong></p>
  
  <pre><code>- (IBAction)uploadFile:(id)sender 
  {
      transferType = TransferTypeUpload;
      [self prepareTransferClient];
  }
  </code></pre>
  
  <p><strong>Prepare Client</strong></p>
  
  <pre><code>- (void)prepareTransferClient {
  
  self.transferClient = [[[WTClient alloc] initWithLocalURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"test" ofType:@"png"]]
                              remoteURL:[NSURL URLWithString:@"http://www.mywebsite.com/test"]
                               username:@"user"
                               password:@"pass"] autorelease];
  
  [self.transferClient setDelegate:self];
  [self performSelectorInBackground:@selector(startTransfer) withObject:nil];
  }
  </code></pre>
  
  <p>StartTransfer is the WTClient's function which is in-built to start Uploading data. Please help!</p>
  
  <p>P.S I tried checking the server for correction via the App <a href="https://itunes.apple.com/in/app/webdav-navigator/id382551345?mt=8" rel="nofollow">WebDav Navigator</a> and I could upload images.</p>
  
  <p>Basically, All I want is to upload images on WebDav Server and I am very new to this, so I have found just this framework. Are you aware of any other alternatives through which I could interact with WebDav Server?</p>
  
  <p>Any kind of suggestions, answers are welcomed.</p>
  
  <p>Thanks a lot.</p>