그누보드 첨부파일 따로따로~? 채택완료
안녕하세요.
이렇게 bf_file_13, 14번은 따로따로,
1~12번은 그대로 출력하고싶습니다
12; $i++) { ?>
title="파일첨부 : 용량 이하만 업로드 가능" class="frm_file ">
var sel_file;
$(document).ready(function() {
$("#bf_file_").on("change", handleImgFileSelect);
});
function handleImgFileSelect(e) {
var files = e.target.files;
var filesArr = Array.prototype.slice.call(files);
filesArr.forEach(function(f) {
if(!f.type.match("image.*")) {
alert("이미지 파일만 첨부해주세요.");
return;
}
sel_file = f;
var reader = new FileReader();
reader.onload = function(e) {
$("#img_").attr("src", e.target.result);
}
reader.readAsDataURL(f);
});
}
title="파일 설명을 입력해주세요." class="full_input frm_input" placeholder="파일 설명을 입력해주세요.">
$file = get_file($bo_table, $wr_id);
$image = urlencode($file[$i]['file']);
$image_path = G5_DATA_PATH.'/file/'.$bo_table;
$image_url = G5_DATA_URL.'/file/'.$bo_table;
if (preg_match("/\.(gif|jpg|jpeg|png)$/i", $image)) {
$thumb = thumbnail($image, $image_path , $image_path , 80, 80, false, true);
$image_content = $image_url.'/'.$thumb;
echo "";
}
?>
value="1">
}?>
이렇게 하였는데.. 되지않네요 ㅠ
문제가 무엇인가요..?
답변을 작성하려면 로그인이 필요합니다.
로그인