{"action":"closed","issue":{"url":"https://api.github.com/repos/Moya/Moya/issues/1362","repository_url":"https://api.github.com/repos/Moya/Moya","labels_url":"https://api.github.com/repos/Moya/Moya/issues/1362/labels{/name}","comments_url":"https://api.github.com/repos/Moya/Moya/issues/1362/comments","events_url":"https://api.github.com/repos/Moya/Moya/issues/1362/events","html_url":"https://github.com/Moya/Moya/issues/1362","id":264142981,"number":1362,"title":"How to add parameters to body when upload multipart data in 10.0.0_beta1","user":{"login":"RockyAo","id":9822953,"avatar_url":"https://avatars1.githubusercontent.com/u/9822953?v=4","gravatar_id":"","url":"https://api.github.com/users/RockyAo","html_url":"https://github.com/RockyAo","followers_url":"https://api.github.com/users/RockyAo/followers","following_url":"https://api.github.com/users/RockyAo/following{/other_user}","gists_url":"https://api.github.com/users/RockyAo/gists{/gist_id}","starred_url":"https://api.github.com/users/RockyAo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RockyAo/subscriptions","organizations_url":"https://api.github.com/users/RockyAo/orgs","repos_url":"https://api.github.com/users/RockyAo/repos","events_url":"https://api.github.com/users/RockyAo/events{/privacy}","received_events_url":"https://api.github.com/users/RockyAo/received_events","type":"User","site_admin":false},"labels":[{"id":122272862,"url":"https://api.github.com/repos/Moya/Moya/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-10T08:38:34Z","updated_at":"2017-10-13T02:51:58Z","closed_at":"2017-10-13T02:51:58Z","author_association":"NONE","body":"I only find one method to add parameters ,  but it add the parameters to url.. I want to add parameters to body. How could I do it\r\n```swift\r\npublic var task: Task {\r\n        switch self {\r\n        case .createAvatar(let imageData,let both,let noBody):\r\n            let data = MultipartFormData(provider: .data(imageData), name: \"input\", fileName: \"imageName\", mimeType: \"image/jpeg\")\r\n            \r\n            let parameters = [\r\n                \"mode\":\"final\",\r\n                \"no_body\": noBody ? 1 : 0,\r\n                \"both\": both ? 1 : 0\r\n                ] as [String : Any]\r\n            \r\n            return .uploadCompositeMultipart([data], urlParameters: parameters)\r\n        }\r\n    }\r\n```\r\n"}}
{"actor":{"display_login":"RockyAo"}}