我需要使用This Class从我使用的文章撰写网站上的多个文件(img/video/mp3),唯一的和主要的问题是: 文章中的所有图像应该由该类显示,并且该类不显示图像(由URL调用时启动下载)。 我设法解决这个问题通过删除这一行(也许线107)在IE中没有显示图片,firefox/chrome/others很好!
header('Content-Disposition:attachment; filename="'.$this->properties["name"].'";');
这使我受益匪浅中显示来自Chrome和Firefox,但是IE仍然图像启动下载:(。
有什么路/头,以修复
编辑:
添加以下到元类型:
case "jpg": $content_type="image/".$file_extension; break;
case "gif": $content_type="image/".$file_extension; break;
case "png": $content_type="image/".$file_extension; break;
`$ this-> properties [“name”]`有什么值? – Gumbo 2010-12-06 15:31:00
{anything} .jpg任何东西都是a-zA-Z0-9_ – 2010-12-06 15:34:38