시

크롬에서 에디터에서 이미지 올리고 불러오는 파일명 오류

· 2013-01-25 (금) 10:46:42 · 1650
제가 지금
----------------------------------------------------------------------------------------------
$quality= 100; //썸네일 퀄리티
$thumb = $thumb_path.'/'.$list[$i][wr_id];
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
// 업로드된 파일이 이미지라면
if (preg_match("/\.(jpg|gif|png|bmp)$/i", $file) && file_exists($file)) {
$thumb = thumbnail($file, $thum_width, $thum_height, 0, 1, $quality, 0, "", $filter, $noimg); //첨부파일 언샾마스크추가

} else { //에디터에서 삽입한 이미지
$edit_img = $list[$i]['wr_content'];
if (eregi("data/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) { // data/cheditor------
$file = $g4[path].'/' . $tmp[0]; // 파일명

$thumb=thumbnail($file, $thum_width, $thum_height, 0, 1, $quality, 0, "", $filter, $noimg); //언샾마스크추가

}
}
-----------------------------------------------------------------------
이런 소스를 쓰는데요 자꾸 크롬에서 에디터에 올린 이미지만 no-image가 떠서 열심히 추적해본결과 황당햇답니다.. 썸네일 생성하도록 보내지는 파일 주소가....
/data/cheditor4/1301/fbd52e0c2c7b61a501bf424960aecd3f_lTCZ6hZ7OddrSdZyRKbYmrfu.JPG" width="640" height="360" alt=" (10)[23-47-29].JPG
이건 무슨 경우에요..?
/data/cheditor4/1301/fbd52e0c2c7b61a501bf424960aecd3f_lTCZ6hZ7OddrSdZyRKbYmrfu.JPG
이게 정상경로인데.. " width="640" height="360" alt=" (10)[23-47-29].JPG 이건 무슨..?
혹시 이런경우 잇나요..? 혹시 해결하신분 계신가요...? 방법쫌...
|
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-01-25 조회 1,686
13-01-25 조회 943
13-01-25 조회 956
13-01-25 조회 1,048
13-01-25 조회 1,004
13-01-25 조회 2,152
13-01-25 조회 1,257
13-01-25 조회 1,279
13-01-25 조회 1,061
13-01-25 조회 947
13-01-25 조회 3,661
13-01-25 조회 1,614
13-01-25 조회 744
13-01-25 조회 880
13-01-25 조회 618
13-01-25 조회 1,014
13-01-25 조회 612
13-01-25 조회 818
13-01-25 조회 1,651
13-01-25 조회 1,132