javascript - php downloads the image header, android browser downloads normally, apple only displays the image and cannot download it, please give me some guidance
过去多啦不再A梦2017-05-16 12:58:24
0
2
532
Download the image using PHP, use header, all Android browsers work fine, Apple Safari will jump to the larger image after clicking on the image. But there is no download part, and there is no gallery, please give me some advice
What PHP does is output the file content to the browser. Downloading is the behavior of the browser. Safari may handle the response differently. Since there is a big picture, right-clicking and saving as will download it
What PHP does is output the file content to the browser. Downloading is the behavior of the browser. Safari may handle the response differently. Since there is a big picture, right-clicking and saving as will download it
It should be because Apple doesn’t allow random downloads, and many incidents have been blocked.