PDF download fails in Android Browser

前端 未结 1 1659
被撕碎了的回忆
被撕碎了的回忆 2020-12-22 11:07

I have an ASP.Net WebForm that dynamically generates a pdf. The pdf download works in all the desktop browsers, as well as the IPad, Chrome mobile, and Firefox mobile. How

相关标签:
1条回答
  • 2020-12-22 11:43

    Since you said the PDF is generated by a form, I'm assuming that's in response to a POST. I'm having the same problem, and found this comment on a similar S/O question:

    issue is due to a bug in the Android browser and Dolphin, which causes downloads to fail on POST actions. I changed my actions to GET as a workaround.

    The issue referenced is Support download of POST responses - open since 2009!


    (This question has several yet-unresolved iterations on S/O; neither closing nor answering them all seems reasonable, so how about some links:

    • C# Response Shows Download Unsuccessful Error on Android Browser
    • C# Response.Write pdf not working with Android Browser
    • ASP.NET Inconsistent PDF file download results )
    0 讨论(0)
提交回复
热议问题