{"action":"created","issue":{"url":"https://api.github.com/repos/fex-team/webuploader/issues/185","labels_url":"https://api.github.com/repos/fex-team/webuploader/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/fex-team/webuploader/issues/185/comments","events_url":"https://api.github.com/repos/fex-team/webuploader/issues/185/events","html_url":"https://github.com/fex-team/webuploader/issues/185","id":33951903,"number":185,"title":"应用于移动端注意事项","user":{"login":"2betop","id":2698393,"avatar_url":"https://avatars.githubusercontent.com/u/2698393?v=3","gravatar_id":"","url":"https://api.github.com/users/2betop","html_url":"https://github.com/2betop","followers_url":"https://api.github.com/users/2betop/followers","following_url":"https://api.github.com/users/2betop/following{/other_user}","gists_url":"https://api.github.com/users/2betop/gists{/gist_id}","starred_url":"https://api.github.com/users/2betop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2betop/subscriptions","organizations_url":"https://api.github.com/users/2betop/orgs","repos_url":"https://api.github.com/users/2betop/repos","events_url":"https://api.github.com/users/2betop/events{/privacy}","received_events_url":"https://api.github.com/users/2betop/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fex-team/webuploader/labels/faq","name":"faq","color":"006b75"},{"url":"https://api.github.com/repos/fex-team/webuploader/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":54,"created_at":"2014-05-21T05:16:41Z","updated_at":"2015-08-05T06:36:57Z","closed_at":null,"body":"webuploader 是满足 ios 6+, android 4+ 的。\r\n\r\n目前移动端有几个重要的 bug 在此列出来以免大家踩坑。\r\n\r\n1. 上传请求内容为空，这是 android 4 的一个bug，只要 file 的 blob数据修改过，通过 xhr2 去发送就有这个问题。 详情：https://code.google.com/p/android/issues/detail?id=39882\r\n\r\n  解决方案： 发送的时候采用二进制方案，即 把 sendAsBinary 设置成true, 通过这种方式可以避免这个问题。后端接受需要小改动一下。\r\n2. jpeg 压缩后体积反而变大了，这是 android 的另外一个 bug, canvas.toDataUrl 不支持 jpeg编码，实际上采用的 png 编码。详情： https://code.google.com/p/android/issues/detail?id=39885\r\n    \r\n    解决方案：引入了一个 jpeg js压缩库，在不支持的的情况下采用此库。但是此库默认没有打包进来，需要自行配置打包方案，将 runtime/html5/androidpatch.js 打包进来。"},"comment":{"url":"https://api.github.com/repos/fex-team/webuploader/issues/comments/127889875","html_url":"https://github.com/fex-team/webuploader/issues/185#issuecomment-127889875","issue_url":"https://api.github.com/repos/fex-team/webuploader/issues/185","id":127889875,"user":{"login":"leebin2010","id":12508545,"avatar_url":"https://avatars.githubusercontent.com/u/12508545?v=3","gravatar_id":"","url":"https://api.github.com/users/leebin2010","html_url":"https://github.com/leebin2010","followers_url":"https://api.github.com/users/leebin2010/followers","following_url":"https://api.github.com/users/leebin2010/following{/other_user}","gists_url":"https://api.github.com/users/leebin2010/gists{/gist_id}","starred_url":"https://api.github.com/users/leebin2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leebin2010/subscriptions","organizations_url":"https://api.github.com/users/leebin2010/orgs","repos_url":"https://api.github.com/users/leebin2010/repos","events_url":"https://api.github.com/users/leebin2010/events{/privacy}","received_events_url":"https://api.github.com/users/leebin2010/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T06:36:57Z","updated_at":"2015-08-05T06:36:57Z","body":"@HeJianChi 就只是把前台的sendAsBinary设置成true，前台就没改动什么了？？能提供一下后台的代码吗，谢谢了。方便的的话，发到qq邮箱吧：549119294"}}