크롬에서 에디터에서 이미지 올리고 불러오는 파일명 오류
제가 지금
----------------------------------------------------------------------------------------------
$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 이건 무슨..?
혹시 이런경우 잇나요..? 혹시 해결하신분 계신가요...? 방법쫌...
----------------------------------------------------------------------------------------------
$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 질문답변
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66534 | 11년 전 | 3859 | ||
| 66533 |
다이아레빗
|
11년 전 | 2762 | |
| 66532 | 11년 전 | 2732 | ||
| 66531 |
alexseo
|
11년 전 | 2947 | |
| 66530 | 11년 전 | 6222 | ||
| 66529 | 11년 전 | 3247 | ||
| 66528 |
alexseo
|
11년 전 | 3330 | |
| 66527 | 11년 전 | 2894 | ||
| 66526 | 11년 전 | 3212 | ||
| 66525 |
lsj9894
|
11년 전 | 2764 | |
| 66524 |
webart
|
11년 전 | 3807 | |
| 66523 |
열라뽕똬이
|
11년 전 | 2711 | |
| 66522 | 11년 전 | 5199 | ||
| 66521 |
xargs
|
11년 전 | 2792 | |
| 66520 | 11년 전 | 2440 | ||
| 66519 | 11년 전 | 3399 | ||
| 66518 | 11년 전 | 2654 | ||
| 66517 | 11년 전 | 3604 | ||
| 66516 | 11년 전 | 5840 | ||
| 66515 | 11년 전 | 4636 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기