Avoiding content type issues when downloading a file via browser on Android

后端 未结 5 1770
無奈伤痛
無奈伤痛 2020-11-29 02:24

If I have a file made available to a browser through my webapp, I normally just set the URL to something like http://website.com/webapp/download/89347/image.jpg

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 02:49

    In theory, the filename parameter should be set on Content-Disposition, not Content-Type. Not sure whether this will help with the Android browser.

提交回复
热议问题