이미지 업로드 갯수

이미지 업로드 갯수

QA

이미지 업로드 갯수

본문

 

/www/plugin/editor/smarteditor2/photo_uploader/popup/js/basic.js
    // Change this to the location of your server-side upload handler:
    var gnu = {
        url: './php/?_nonce=' + ed_nonce,
        container_el: 'body',
        dreg_area: '#drag_area',
        dreg_area_list: '#drag_area > ul',
        progress_bar: '#progress .progress-bar',
        filter: /^(image\/bmp|image\/gif|image\/jpg|image\/jpeg|image\/png|image\/webp)$/i,
        files: [],
        file_limit: 50, //한번에 올릴수 파일갯수 제한
        imgw: 100,
        imgh: 70,

50개로 수정해도 안됩니다 혹시 다른방법이 있을까요?

이 질문에 댓글 쓰기 :

답변 2

php.ini 파일의 설정을 확인해 보세요


upload_max_filesize = 2M
post_max_size = 8M
max_file_uploads = 20

 

또는 php 파일업로드 스크립트 부분에 다음과 같은 형식으로 설정해 보세요


<?php
// 파일 업로드 처리 스크립트
// 추가적인 설정
ini_set('upload_max_filesize', '5M');
ini_set('post_max_size', '20M');

https://www.php.net/manual/en/ini.core.php#ini.max-file-uploads

PHP 기본 설정 max_file_uploads 는 기본값이 20개 인데

이 제한에 걸린것은 아닌지 확인해보면 좋을것 같습니다.

답변을 작성하시기 전에 로그인 해주세요.
전체 187
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT