보통은 게시판에서 한글파일을 읽으려면, 저장해서 읽거나, 바로 읽기를 합니다.
그런데 티스토리에서 파일을 바로 '읽기'로 하면 없는 파일이라고 하고 읽을수가 없습니다.
버그인가요?그리고 파일을 저장하기 위해서 파일에 커서를 갖다대면 아이콘과 파일확장자명이 제대로 나오는데
저장하는 창에서 보면 파일속성이 html 문서로 되어 있습니다.
/var/www/tt/blog/attachment/index.php 파일을 아래와 같이 수정해 보십시오.
--- tt.orig/blog/attachment/index.php 2006-06-29 16:45:42.000000000 +0900
+++ tt/blog/attachment/index.php 2006-09-21 10:52:32.002301770 +0900
@@ -372,9 +372,10 @@
}
header('Content-Disposition: attachment; filename="'.UTF8::convert($attachment['label']).'"');
header('Content-Transfer-Encoding: binary');
-header('Last-Modified: '.Timestamp::getRFC1123GMT($fstat['mtime']));
+//header('Last-Modified: '.Timestamp::getRFC1123GMT($fstat['mtime']));
header('Content-Length: '.$fstat['size']);
header('Content-Type: '.$attachment['mime']);
+header('Cache-control: private');
header('Connection: close');
fpassthru($fp);
fclose($fp);
같은 문제를 겪고 있다가 Cache-control: private 헤더를 추가하여 해결하고 있습니다.