파일업로드에 관한 질문입니다. 정보
파일업로드에 관한 질문입니다.본문
안녕하세요. 그누보드를 사용한지 한 2~3개월 정도 됬는데요..;
질문답변이나, 팁, FAQ를 찾아보아도 저의 난해(...)한 문제의 답변이 없어서 질문드립니다.
게시판에서 스킨을 적용하던 안하던 파일업로드(대부분 사진등의 그림파일)를 하면
파일이 등록이 안됩니다.
수정을 해서 파일을 올려야 파일이 올라가더라고요;
회사 홈페이지를 제작했는데...제가 못하는거니 하고 그냥 파일올릴때마다 번거로워도 그냥, 저 혼자 노가다(..;)해야지 하고 어물쩡 넘어갔었는데요. 이번엔 다른곳의 홈페이지를 만들게 되서;; 수정해야만 할것같은 위기감(...)을 느껴 질문드립니다.
현재 만들고있는 홈페이지는 아직 미완이라, 전에 만든 회사홈페이지 주소를 올립니다.
(문제는 같습니다. 파일업로드 하려면 수정을 거쳐야 한다는....;)
고수님들 답변 부탁드려요ㅡㅜ
아, 그리고 제가 프로그램쪽은 전혀 몰라서 그러는데요; 뭘 알려드려야 답변이 쉬우실런지요? 그것에 대해 알려주시면 말씀드리겠습니다.
댓글 전체

음 파일 올리닌간 오류가 발생하나요
지금 현재 님이 만들어 놓으신 www.flowerflash.net사이트에 접속해보니
스크립트 오류가 하나 뜨던대 일단 먼지는 잘 모르겠네요..
일단 오류메세지나 자세하게 알려주세요
제가 지금 퇴근시간이었어 쪽지나 메신져로 연락 주시면 봐드리겠스니다.
지금 현재 님이 만들어 놓으신 www.flowerflash.net사이트에 접속해보니
스크립트 오류가 하나 뜨던대 일단 먼지는 잘 모르겠네요..
일단 오류메세지나 자세하게 알려주세요
제가 지금 퇴근시간이었어 쪽지나 메신져로 연락 주시면 봐드리겠스니다.
감사합니다!! 이렇게 답변이 빠를줄은...ㅜ▽ㅜ
-------------------------------------------------------------스크립트오류
줄:408
문자:9
오류: document.getElementByld(...)'는 null 이거나 객체가 아닙니다.
코드:0
---------------------------------------------------------------이라고 나오고요;
아마 잘못되었다고 나오는 부분이 요기같습니다.===================================
<script language='JavaScript'>
var save_before = '';
var save_html = document.getElementById('comment_write').innerHTML;
function fviewcomment_submit(f)
{
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
var s;
if (s = word_filter_check(document.getElementById('wr_content').value))
{
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
document.getElementById('wr_content').focus();
return false;
}
// 양쪽 공백 없애기
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
document.getElementById('wr_content').value = document.getElementById('wr_content').value.replace(pattern, "");
if (char_min > 0 || char_max > 0)
{
check_byte('wr_content', 'char_count');
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt)
{
alert("코멘트는 "+char_min+"글자 이상 쓰셔야 합니다.");
return false;
} else if (char_max > 0 && char_max < cnt)
{
alert("코멘트는 "+char_max+"글자 이하로 쓰셔야 합니다.");
return false;
}
}
else if (!document.getElementById('wr_content').value)
{
alert("코멘트를 입력하여 주십시오.");
return false;
}
if (typeof(f.wr_name) != 'undefined')
{
f.wr_name.value = f.wr_name.value.replace(pattern, "");
if (f.wr_name.value == '')
{
alert('이름이 입력되지 않았습니다.');
f.wr_name.focus();
return false;
}
}
if (typeof(f.wr_password) != 'undefined')
{
f.wr_password.value = f.wr_password.value.replace(pattern, "");
if (f.wr_password.value == '')
{
alert('패스워드가 입력되지 않았습니다.');
f.wr_password.focus();
return false;
}
}
if (typeof(f.wr_key) != 'undefined')
{
if (hex_md5(f.wr_key.value) != md5_norobot_key)
{
>>408번째줄>>> alert('자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.');
f.wr_key.focus();
return false;
}
}
return true;
}
function comment_box(comment_id, work)
{
var el_id;
// 코멘트 아이디가 넘어오면 답변, 수정
if (comment_id)
{
if (work == 'c')
el_id = 'reply_' + comment_id;
else
el_id = 'edit_' + comment_id;
}
else
el_id = 'comment_write';
if (save_before != el_id)
{
if (save_before)
{
document.getElementById(save_before).style.display = 'none';
document.getElementById(save_before).innerHTML = '';
}
document.getElementById(el_id).style.display = '';
document.getElementById(el_id).innerHTML = save_html;
// 코멘트 수정
if (work == 'cu')
{
document.getElementById('wr_content').value = document.getElementById('save_comment_' + comment_id).value;
if (typeof char_count != 'undefined')
check_byte('wr_content', 'char_count');
}
document.getElementById('comment_id').value = comment_id;
document.getElementById('w').value = work;
save_before = el_id;
}
}
function comment_delete(url)
{
if (confirm("이 코멘트를 삭제하시겠습니까?")) location.href = url;
}
comment_box('', 'c'); // 코멘트 입력폼이 보이도록 처리하기위해서 추가 (root님)
</script>
-----------------------------------------------------------------------
그런데, 제 짧은 지식으로는 408괄호안의 부분이 머가 잘못된건지는...orz
-------------------------------------------------------------스크립트오류
줄:408
문자:9
오류: document.getElementByld(...)'는 null 이거나 객체가 아닙니다.
코드:0
---------------------------------------------------------------이라고 나오고요;
아마 잘못되었다고 나오는 부분이 요기같습니다.===================================
<script language='JavaScript'>
var save_before = '';
var save_html = document.getElementById('comment_write').innerHTML;
function fviewcomment_submit(f)
{
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
var s;
if (s = word_filter_check(document.getElementById('wr_content').value))
{
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
document.getElementById('wr_content').focus();
return false;
}
// 양쪽 공백 없애기
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
document.getElementById('wr_content').value = document.getElementById('wr_content').value.replace(pattern, "");
if (char_min > 0 || char_max > 0)
{
check_byte('wr_content', 'char_count');
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt)
{
alert("코멘트는 "+char_min+"글자 이상 쓰셔야 합니다.");
return false;
} else if (char_max > 0 && char_max < cnt)
{
alert("코멘트는 "+char_max+"글자 이하로 쓰셔야 합니다.");
return false;
}
}
else if (!document.getElementById('wr_content').value)
{
alert("코멘트를 입력하여 주십시오.");
return false;
}
if (typeof(f.wr_name) != 'undefined')
{
f.wr_name.value = f.wr_name.value.replace(pattern, "");
if (f.wr_name.value == '')
{
alert('이름이 입력되지 않았습니다.');
f.wr_name.focus();
return false;
}
}
if (typeof(f.wr_password) != 'undefined')
{
f.wr_password.value = f.wr_password.value.replace(pattern, "");
if (f.wr_password.value == '')
{
alert('패스워드가 입력되지 않았습니다.');
f.wr_password.focus();
return false;
}
}
if (typeof(f.wr_key) != 'undefined')
{
if (hex_md5(f.wr_key.value) != md5_norobot_key)
{
>>408번째줄>>> alert('자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.');
f.wr_key.focus();
return false;
}
}
return true;
}
function comment_box(comment_id, work)
{
var el_id;
// 코멘트 아이디가 넘어오면 답변, 수정
if (comment_id)
{
if (work == 'c')
el_id = 'reply_' + comment_id;
else
el_id = 'edit_' + comment_id;
}
else
el_id = 'comment_write';
if (save_before != el_id)
{
if (save_before)
{
document.getElementById(save_before).style.display = 'none';
document.getElementById(save_before).innerHTML = '';
}
document.getElementById(el_id).style.display = '';
document.getElementById(el_id).innerHTML = save_html;
// 코멘트 수정
if (work == 'cu')
{
document.getElementById('wr_content').value = document.getElementById('save_comment_' + comment_id).value;
if (typeof char_count != 'undefined')
check_byte('wr_content', 'char_count');
}
document.getElementById('comment_id').value = comment_id;
document.getElementById('w').value = work;
save_before = el_id;
}
}
function comment_delete(url)
{
if (confirm("이 코멘트를 삭제하시겠습니까?")) location.href = url;
}
comment_box('', 'c'); // 코멘트 입력폼이 보이도록 처리하기위해서 추가 (root님)
</script>
-----------------------------------------------------------------------
그런데, 제 짧은 지식으로는 408괄호안의 부분이 머가 잘못된건지는...orz