cheditor 이미지 업로드시 대문자 확장자 무한 로딩이 ㅠㅠ
본문
다 정상적으로 작동 잘 합니다....
그런데 확장자가 대문자이면 JPG 이건... GIF 이건....
무한로딩에 빠지네요....
왜 그럴까요 ???
cheditor 5.1.4로 최신것으로 적용해봤어요.
ㅠㅠ js 소스 봐도 어렵네요...
아래 해당 페이지 남겼습니다. 보시고, 조언 부탁드려요....
http://fisnet.co.kr/board/bbs/write.php?bo_table=test
소스는 ....image.htmll5.js 파일의 아래부분에서 예외가 발생하네요 ...
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at XMLHttpRequest.xhr.onreadystatechange (VM5717 image.html5.js:815)
xhr.onreadystatechange = function(xhrEvent) {
if (this.readyState === 4 && this.status === 200) {
var jsonText = decodeURI(oEditor.trimSpace(this.responseText));
jsonText = jsonText.replace(/\+/g, ' ').replace(/\\/g, '\\\\');
var jsonData = JSON.parse(jsonText);
var img = new Image(), i;
답변 2
그누보드5 최신버전에 보시면
cheditor 가장 최신버전인 5.1.9.3 버전이 적용되어 있으니,
패치를 권장합니다.
감사합니다...
말씀하신대로 그누보드에 최신버전으로 변경하니 이젠 다른 문제가 발생하네요....
아래와 같은 에러와 함께... 파일첨부하는 창이 나오지 않네요.
일단 급한대로 다시 스마트에디트로 사용하기로 했습니다. ^^;;;
Uncaught TypeError: Cannot read property 'length' of null
at cheditor.init (image.html5.js:966)
at HTMLIFrameElement.popWinResizeHeight (cheditor.js:4676)