Send multipart data using Alamofire in swift

        let URL = try! URLRequest(url: "http://quize.in/feedback.php", method: .post, headers: nil)
        print(URL)
        let time = NSDate().timeIntervalSince1970 * 1000
        let fileName : String = "Profile" + String(time) + ".png"
        Alamofire.upload(multipartFormData: { multipartFormData in
            multipartFormData.append((CategoryName.data(using: String.Encoding.utf8, allowLossyConversion: false))!, withName: "Category_name")
            multipartFormData.append((content.data(using: String.Encoding.utf8, allowLossyConversion: false))!, withName: "Feedback_content")
            multipartFormData.append((phone.data(using: String.Encoding.utf8, allowLossyConversion: false))!, withName: "Phone")
            multipartFormData.append((email.data(using: String.Encoding.utf8, allowLossyConversion: false))!, withName: "Email")
            if Image != nil{
                multipartFormData.append(UIImageJPEGRepresentation(Image, 0.5)!, withName: "Image", fileName: fileName, mimeType: "image/jpg")
            }
        }, with: URL, encodingCompletion: {
            encodingResult in
            switch encodingResult {
            case .success(let upload, _, _):
                upload.responseJSON { response in  
                    let json = JSON(response.result.value ?? response)
                    print(json)   
                }
            case .failure(let encodingError):
                // hide progressbas here
                print(encodingError)
            }
        })