TimLang
V2EX  ›  问与答

安卓 4.0 的手机用微信浏览器打开 html5 应用上传文件失败有解决方法吗

  •  
  •   TimLang · Mar 13, 2015 · 2646 views
    This topic created in 4105 days ago, the information mentioned may be changed or developed.

    网上搜了很多解决方案都不行。有个看起来还算靠谱的结论:

    Issue 53088: Android reloads web page when selecting file

    Most likely your device is running low on memory so when you open the file chooser dialog, the browser app is closed. When you close the chooser, the browser is reopened and has no choice but to reopen the page. That's how Android works. I know it's not helpful in your case, but if that's the problem you are seeing, you are unlikely to get a fix as this is core to the whole of Android.

    Try and use some task managers to close all other apps and then try thus again and see if it works better and confirms memory is your issue.

    真无解吗?

    2 replies    2015-03-13 17:37:36 +08:00
    learnshare
        1
    learnshare  
       Mar 13, 2015
    微信自己把它禁止了,要不你卸载微信?

    引导用户打开其他浏览器,来完成相应功能。如果是图片上传的话,最好用开发接口,让用户发送图片到公众号。
    TimLang
        2
    TimLang  
    OP
       Mar 13, 2015
    @learnshare iOS没这个问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5195 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 09:38 · PVG 17:38 · LAX 02:38 · JFK 05:38
    ♥ Do have faith in what you're doing.