|
|
|
|
|
Aw: Re: Aw: Re: Error with images after upgrade to 3.0.5 [message #183317 is a reply to message #183316] |
Sun, 20 October 2013 16:22 |
Kabir
Messages: 29 Registered: September 2004
Karma: 0
|
Junior Member |
|
|
this is a hint, the header for a gif fikle looks
Date: Sun, 20 Oct 2013 16:20:20 GMT
Server: Apache/2.2.22 (Debian)
X-Powered-By: PHP/5.4.4-14+deb7u4
P3P: CP="ALL CUR OUR IND UNI ONL INT CNT STA"
Cache-Control: no-store, private, must-revalidate, proxy-revalidate, post-check=0, pre-check=0, max-age=0, s-maxage=0
Expires: Mon, 21 Jan 1980 06:01:01 GMT
Pragma: no-cache
Last-Modified: Sun, 20 Oct 2013 12:17:59 GMT
Content-Disposition: filename="2-8-2008.gif"
Content-Length: 45752
Connection: close
Content-Type: image/gif
200 OK
|
|
|
Aw: Re: Aw: Re: Error with images after upgrade to 3.0.5 [message #183328 is a reply to message #183317] |
Sun, 20 October 2013 18:56 |
Kabir
Messages: 29 Registered: September 2004
Karma: 0
|
Junior Member |
|
|
this test script works on the server:
<?php
$file ='/var/www/FUDforum/files/29948.atch';
header('Content-Description: File Transfer');
header('Cache-Control: public');
header("Content-type: image/gif");
header("Content-Transfer-Encoding: binary");
header('Content-Disposition: attachment; filename='. basename($file));
header('Content-Length: '.filesize($file));
ob_clean(); #THIS!
flush();
readfile($file);
?>
Any hints or proposals what or where can debug ?
Thx
[Updated on: Sun, 20 October 2013 18:56] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|