{"action":"created","issue":{"url":"https://api.github.com/repos/square/retrofit/issues/1469","labels_url":"https://api.github.com/repos/square/retrofit/issues/1469/labels{/name}","comments_url":"https://api.github.com/repos/square/retrofit/issues/1469/comments","events_url":"https://api.github.com/repos/square/retrofit/issues/1469/events","html_url":"https://github.com/square/retrofit/issues/1469","id":126544128,"number":1469,"title":"multiple file upload does not work","user":{"login":"psyopussy","id":1656346,"avatar_url":"https://avatars.githubusercontent.com/u/1656346?v=3","gravatar_id":"","url":"https://api.github.com/users/psyopussy","html_url":"https://github.com/psyopussy","followers_url":"https://api.github.com/users/psyopussy/followers","following_url":"https://api.github.com/users/psyopussy/following{/other_user}","gists_url":"https://api.github.com/users/psyopussy/gists{/gist_id}","starred_url":"https://api.github.com/users/psyopussy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psyopussy/subscriptions","organizations_url":"https://api.github.com/users/psyopussy/orgs","repos_url":"https://api.github.com/users/psyopussy/repos","events_url":"https://api.github.com/users/psyopussy/events{/privacy}","received_events_url":"https://api.github.com/users/psyopussy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-13T23:55:03Z","updated_at":"2016-01-14T11:46:31Z","closed_at":null,"body":"if i follow the docs: http://square.github.io/retrofit/2.x/retrofit/retrofit2/http/PartMap.html\r\n\r\nit does not work,\r\ni get a lot of gibberish on the server side and also it seems like it is only trying to upload the last image of the list of images.\r\n\r\nif i try it like this only the last  image in the map is uploaded:\r\n\r\n---\r\n\r\nHashMap<String, RequestBody> partMap = new HashMap<String, RequestBody>();\r\npartMap.put(\"file\\\"; filename=\\\"\" + file.getName(), requestBody);\r\npartMap.put(\"file\\\"; filename=\\\"\" + file2.getName(), requestBody);\r\nCall<ResponseBody> call = service.upload(partMap);\r\n\r\n---\r\n\r\n@Multipart\r\n@POST(\"/upload\")\r\nCall<ResponseBody> upload(\r\n    @PartMap() Map&lt;String, RequestBody&gt; partMap\r\n);\r\n\r\n---\r\n"},"comment":{"url":"https://api.github.com/repos/square/retrofit/issues/comments/171621608","html_url":"https://github.com/square/retrofit/issues/1469#issuecomment-171621608","issue_url":"https://api.github.com/repos/square/retrofit/issues/1469","id":171621608,"user":{"login":"psyopussy","id":1656346,"avatar_url":"https://avatars.githubusercontent.com/u/1656346?v=3","gravatar_id":"","url":"https://api.github.com/users/psyopussy","html_url":"https://github.com/psyopussy","followers_url":"https://api.github.com/users/psyopussy/followers","following_url":"https://api.github.com/users/psyopussy/following{/other_user}","gists_url":"https://api.github.com/users/psyopussy/gists{/gist_id}","starred_url":"https://api.github.com/users/psyopussy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psyopussy/subscriptions","organizations_url":"https://api.github.com/users/psyopussy/orgs","repos_url":"https://api.github.com/users/psyopussy/repos","events_url":"https://api.github.com/users/psyopussy/events{/privacy}","received_events_url":"https://api.github.com/users/psyopussy/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T11:46:31Z","updated_at":"2016-01-14T11:46:31Z","body":"Thank you, but that example is an example for a single image upload,\r\ni am trying to upload multiple images at once like it is documented here:\r\nhttp://square.github.io/retrofit/2.x/retrofit/retrofit2/http/PartMap.html\r\n\r\n\r\nif that is incorrect method can you please point me to the correct documentation for uploading multiple files?\r\n\r\nthank you very very much.\r\n\r\ni already asked on stackexchanged but my question is stil unanswered:\r\nhttp://stackoverflow.com/questions/34778224/android-retrofit-2-multiple-file-upload-howto\r\n\r\n\r\n"}}