프로필사진 업로드시 사이즈체크 무시. 버그 정보
프로필사진 업로드시 사이즈체크 무시. 버그
본문
blog/join_blog_update.php 46라인 (다음과 같이 수정을 해야 설정크기를 체크함)
수정 전
if( $gb4['profile_image_width'] != 0 && $image_size[0] > $gb4['profile_image_width'] )
alert("프로필 이미지의 가로 사이즈가 {$gb4['profile_image_width']}픽셀 보다 큽니다.");
if( $gb4['profile_image_height'] != 0 && $image_size[1] > $gb4['profile_image_height'] )
alert("프로필 이미지의 세로 사이즈가 {$gb4['profile_image_height']}픽셀 보다 큽니다.");
수정 후
if( $gb4['profile_image_width'] != '0' && $get_image_size[0] > $gb4['profile_image_width'] )
alert("프로필 이미지의 가로 사이즈가 {$gb4['profile_image_width']}픽셀 보다 큽니다.");
if( $gb4['profile_image_height'] != '0' && $get_image_size[1] > $gb4['profile_image_height'] )
alert("프로필 이미지의 세로 사이즈가 {$gb4['profile_image_height']}픽셀 보다 큽니다.");
수정 전
if( $gb4['profile_image_width'] != 0 && $image_size[0] > $gb4['profile_image_width'] )
alert("프로필 이미지의 가로 사이즈가 {$gb4['profile_image_width']}픽셀 보다 큽니다.");
if( $gb4['profile_image_height'] != 0 && $image_size[1] > $gb4['profile_image_height'] )
alert("프로필 이미지의 세로 사이즈가 {$gb4['profile_image_height']}픽셀 보다 큽니다.");
수정 후
if( $gb4['profile_image_width'] != '0' && $get_image_size[0] > $gb4['profile_image_width'] )
alert("프로필 이미지의 가로 사이즈가 {$gb4['profile_image_width']}픽셀 보다 큽니다.");
if( $gb4['profile_image_height'] != '0' && $get_image_size[1] > $gb4['profile_image_height'] )
alert("프로필 이미지의 세로 사이즈가 {$gb4['profile_image_height']}픽셀 보다 큽니다.");
댓글 전체

감사합니다.