x

한글명으로 된 이미지파일 안보일때 ㅜㅡ 부탁해요~

한글명으로 된이미지파일을 올리면 깨져서 나오던데 무슨 방법이 없을까요?
|

댓글 4개

리눅스서버 세팅하고도 관련이 있는거 같아요...정확히는...에궁..
한글명 이미지파일이 깨지는가요?? ... 전 이상이 없는거 같네요 (4.00.17)
아래와 같이 하면 한글은 모두 바뀌어서 올라가므로 상관없이 됩니다.
bbs/write_update.php

// 접미사를 붙인 파일명
//$upload[$i][file] = substr(md5(uniqid($g4[server_time])),0,8) . '_' . $filename;
//$upload[$i][file] = date("ymdHis",$g4[server_time]).'_'.abs(ip2long($_SERVER[REMOTE_ADDR])).'_'.sprintf("%03d",$i).'_'.substr(md5(uniqid($g4[server_time])),0,4).'_'.urlencode($filename);
//$upload[$i][file] = date("ymd",$g4[server_time]).'_'.sprintf("%04d",$i).'_'.substr(md5(uniqid($g4[server_time])),0,4).'_'.urlencode($filename);
//$upload[$i][file] = date("ymd",$g4[server_time]).'_'.substr(md5(uniqid($g4[server_time])),0,6).'_'.urlencode($filename);
//$upload[$i][file] = abs(ip2long($_SERVER[REMOTE_ADDR])).'_'.substr(md5(uniqid($g4[server_time])),0,8).'_'.urlencode($filename);
$upload[$i][file] = md5($filename).strtolower(strrchr($filename, "."));
여기서 해결책을 찾았네요.
감사합니다. madem님!!
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
20년 전 조회 3,161
20년 전 조회 2,931
20년 전 조회 2,045
20년 전 조회 1.3만
20년 전 조회 2,568
★송아지★
20년 전 조회 2,525
20년 전 조회 2,495
20년 전 조회 3,091
20년 전 조회 3,213
20년 전 조회 3,717
20년 전 조회 2,563
20년 전 조회 2,895
20년 전 조회 2,120
아꽈
20년 전 조회 3,363
20년 전 조회 3,068
20년 전 조회 2,880
20년 전 조회 2,338
20년 전 조회 2,170
20년 전 조회 2,362
20년 전 조회 2,524
🐛 버그신고