I want to send file to server path with a paramater \"filepath\" as one parameter, and file data as another paramater. How do I do it.Here in the following I am appending filepa
You can't just do [body appendData:pathData];
at the start. You need to add it with the appropriate boundary and content information. So you should have a number of lines like:
And repeat from 2 for each additional piece of data to be added.
Check the spec for information on the appropriate content types and disposition info that needs to be added for each data type (perfect example for you is at the bottom).