I’m developing client-server app. I found few tutorials how to upload one image. But what the best way to upload several images using single request? I’m new in web programming so I don’t no the common way.
Any help appreciated.
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 should to use ASIHTTPRequest library.
Then create your own class to manage all request you want. This is mine:
//
To use it, just import
PostRequest.hin yourUIViewControllerand do smth like:Parameters:
(NSString *)string– url string, where to post your request;(NSDictionary *)stringDictionary– dictionary, which contains all the text information (such as name, id etc.);(NSDictionary *)dataDictionary– dictionary, which contains all data information (such as photos, files, etc.);(id)requestDelegate– delegate to perform selectors below;(SEL)requestSelector– selector, which will be executed while successfully request;(SEL)errorSelector– selector, which will be executed, while error occurred.