이미지 업로드 갯수
본문
/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개 인데
이 제한에 걸린것은 아닌지 확인해보면 좋을것 같습니다.
답변을 작성하시기 전에 로그인 해주세요.