{"action":"created","issue":{"url":"https://api.github.com/repos/qiniu/android-sdk/issues/160","labels_url":"https://api.github.com/repos/qiniu/android-sdk/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/qiniu/android-sdk/issues/160/comments","events_url":"https://api.github.com/repos/qiniu/android-sdk/issues/160/events","html_url":"https://github.com/qiniu/android-sdk/issues/160","id":121916454,"number":160,"title":"提供直接提交的方法，返回固定json格式，开发者自己解析","user":{"login":"water54","id":3120618,"avatar_url":"https://avatars.githubusercontent.com/u/3120618?v=3","gravatar_id":"","url":"https://api.github.com/users/water54","html_url":"https://github.com/water54","followers_url":"https://api.github.com/users/water54/followers","following_url":"https://api.github.com/users/water54/following{/other_user}","gists_url":"https://api.github.com/users/water54/gists{/gist_id}","starred_url":"https://api.github.com/users/water54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/water54/subscriptions","organizations_url":"https://api.github.com/users/water54/orgs","repos_url":"https://api.github.com/users/water54/repos","events_url":"https://api.github.com/users/water54/events{/privacy}","received_events_url":"https://api.github.com/users/water54/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-13T12:24:51Z","updated_at":"2015-12-13T14:37:20Z","closed_at":null,"body":"不知道你们考虑过普通的一个上传流程是怎样的没有？先从自己服务器上获取token，然后切换到主线程调用你们的api，再通过回调又切到主线程拿到结果，然后再开线程把key上传到自己的服务器，获取完整URL。整个流程本来只是一件事，完全可以封装到一个线程里。而因为你们的设计完全打破了。代码凌乱不堪。还要另加一个网络库....同时，一次提交根本无法提交多个文件，如果遇到需要上传多张图片的场景，这场景太美，我都不敢想象~希望能够直接提供一个上传api。解释清楚入参，出参。"},"comment":{"url":"https://api.github.com/repos/qiniu/android-sdk/issues/comments/164263985","html_url":"https://github.com/qiniu/android-sdk/issues/160#issuecomment-164263985","issue_url":"https://api.github.com/repos/qiniu/android-sdk/issues/160","id":164263985,"user":{"login":"longbai","id":1204301,"avatar_url":"https://avatars.githubusercontent.com/u/1204301?v=3","gravatar_id":"","url":"https://api.github.com/users/longbai","html_url":"https://github.com/longbai","followers_url":"https://api.github.com/users/longbai/followers","following_url":"https://api.github.com/users/longbai/following{/other_user}","gists_url":"https://api.github.com/users/longbai/gists{/gist_id}","starred_url":"https://api.github.com/users/longbai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longbai/subscriptions","organizations_url":"https://api.github.com/users/longbai/orgs","repos_url":"https://api.github.com/users/longbai/repos","events_url":"https://api.github.com/users/longbai/events{/privacy}","received_events_url":"https://api.github.com/users/longbai/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T14:37:20Z","updated_at":"2015-12-13T14:37:20Z","body":"1 流程和线程是两回事。想要同步也行，用个semaphore。\r\n2 token的来源 我们不假定。\r\n3 上传可以不用主线程调用，只是回调在主线程而已。\r\n4 一次提交多个文件，需要如何保证多个文件同时成功的事务原子性？\r\n5 如果需要特别定制化的需求，建议参考token放置header的方法 自己写就可以了。"}}