what is equivalent iphone (objective c) code to
<form method="post" enctype="multipart/form-data" action="page2.php">
<input type="file" name="File">
<input type="submit" name="uploadbtn">
</form>
i want to upload file from iphone to server.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will need to POST from your device to your server.
You can use the ASIHTTPRequest library to do this or use the built in NSURLConnection class.
Look specifically at the “Sending a form POST with ASIFormDataRequest” section in the ASIHTTPRequest documentation.
If you can’t use a third party library you will have to use NSURLConnection. You can find examples of how to use NSURLConnection here: File Upload to HTTP server in iphone programming