테스트 사이트 - 개발 중인 베타 버전입니다

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

· 12년 전 · 1506
제가 지금
----------------------------------------------------------------------------------------------
$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 이건 무슨..?
혹시 이런경우 잇나요..? 혹시 해결하신분 계신가요...? 방법쫌...

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440