Php 在iOs Google Chrome上下载文件有问题

Php 在iOs Google Chrome上下载文件有问题,php,ios,google-chrome,Php,Ios,Google Chrome,我试图使用下面的PHP代码强制下载.zip归档文件: $filePath = BASE_PATH . '/uploads' . $product->mainFile; header('Pragma: public'); header('Expires: 0'); header('Cache-Control: no-cache'); header('Content-Description: Download');

我试图使用下面的PHP代码强制下载.zip归档文件:

$filePath = BASE_PATH . '/uploads' . $product->mainFile;

header('Pragma: public');
header('Expires: 0');
header('Cache-Control: no-cache');                                      
header('Content-Description: Download'); 
header('Content-Type: application/octet-stream'); 
header('Content-Disposition: attachment; filename="crazypatterns_' . $product->id . '.zip"');
header('Content-Transfer-Encoding: binary');
header('Content-Length: '.filesize($filePath));
此代码在所有浏览器和设备上都能正常工作。。。除了iOs上的谷歌浏览器。 当尝试下载存档文件时,在下载页面-出现错误:“无法确定文件大小”。存档名称不正确,显示为“login”,下载此文件时,文件大小确定不正确-20-30KB,但实际大小超过10MB。 出现错误的屏幕截图-

p.S.$filePath变量正确,并且给定的存档存在。
谢谢;)

您好,您找到解决方案了吗?也许这与iOS上的Chrome当前忽略内容处理标题有关?