In iOS, there is no way to "view the file system", so you cannot use the form in UIWebView to attach photos for upload. The answer is rather confusing, but here it is:
You will need to -
- UIImagePickerController to get a snapshot from a photo album.
- Define POST headers for the submit form
- Encode image as NSData li>
- Write a POST request with NSURLConnection when an NSData object is inserted in the appropriate header
I cannot give you the code for all this because it needs to be broken down into all these steps.
source share