ProAnswers.org

How to upload a photo to a server with the iPhone?

How to upload a photo to a server with the iPhone with Cocoa in Xcode?
I’m writing an iPhone app.

2 Likes

Here’s the perfect answer to your solution.
I used this sample code to upload files. i hope it will help you.

This sample code shows how to upload a file from a Cocoa application using HTTP POST. This code is meant to make it as easy as possible to upload files to your own webserver.
http://www.cocoadev.com/index.pl?HTTPFileUploadSample