p0wer

[SmartEditor 2] smarteditor2 bmp확장자 업로드 오류 "accept_file_types"

· 2024-11-19 (화) 10:11:22 · 3290 · 4

html/plugin/editor/smarteditor2/photo_uploader/popup/php/UploadHandler.php
ㄴ 24 , reprocessImage, 오류명 ”accept_file_types” 3가지 확인 결과

24번째줄

	// imagecreatefrombmp, imagebmp bmp 부분 key, value값에 오타 있었음( 기존 - array("imagecreatefromwbmp", "imagewbmp"))
    private static $MIME_TYPES_PROCESSORS = array(
        "image/gif"       => array("imagecreatefromgif", "imagegif"),
        "image/jpg"       => array("imagecreatefromjpeg", "imagejpeg"),
        "image/jpeg"      => array("imagecreatefromjpeg", "imagejpeg"),
        "image/png"       => array("imagecreatefrompng", "imagepng"),
        "image/bmp"       => array("imagecreatefrombmp", "imagebmp")
   );

wbmp -> bmp
위와 같이 수정 시 bmp파일 정상 업로드 가능

|

댓글 4개

이런 불상사가 있었네요. 버그 보고 하세요.

2024-11-20 (수) 07:52:39

감사합니다 ^^

2024-11-26 (화) 00:10:06

감사합니다 ^^

감사합니다 

댓글을 작성하시려면 로그인이 필요합니다.

그누보드5 팁자료실

2,788건
+
제목 글쓴이 날짜 조회
24-12-28 조회 3,567
24-12-26 조회 4,169
24-12-25 조회 3,516
24-12-24 조회 4,058
24-12-24 조회 3,310
24-12-19 조회 3,790
24-12-17 조회 3,598
24-12-17 조회 3,399
24-12-16 조회 3,387
24-12-14 조회 4,015
24-12-14 조회 3,757
24-12-12 조회 3,811
24-12-10 조회 3,569
24-12-03 조회 3,930
24-12-01 조회 3,541
24-11-30 조회 3,652
24-11-29 조회 5,079
24-11-28 조회 3,480
24-11-25 조회 3,289
24-11-22 조회 3,322
24-11-20 조회 3,661
24-11-19 조회 3,291
24-11-16 조회 3,839
24-11-13 조회 3,334
24-11-11 조회 3,811
24-11-09 조회 3,622
24-11-04 조회 4,257
24-11-02 조회 3,641
24-10-28 조회 3,972
24-10-24 조회 4,076