Uploading multiple images with other parameters in Swift
问题 Right now I've been uploading only one image to a server on a server side script through the code given below. Now I have an array of UIImage , I want to know how can I use UIImageJPEGRepresentation(myImageView.image!, 0.1) to post all the images in a UIImageView array? func uploadImage() { let postPictureUrl = NSURL(string: "http://www.23look.com/merchant/verify") let request = NSMutableURLRequest(URL: postPictureUrl!) request.HTTPMethod="POST" let param=[ "mer_name" : shopNameUITF.text!,