업로드 필드에 최대 크기 4MB를 어떻게 할당 할 수 있습니까? 나는이이미지의 최대 업로드 크기
$imageField = new SortableUploadField('Images', 'Images');
$imageField->setOverwriteWarning(FALSE);
$imageField->setAllowedMaxFileNumber(40);
$sizeMB = 4; // 4 MB
$size = $sizeMB * 1024 * 1024; // 2 MB in bytes
$imageField->getValidator()->setAllowedMaxFileSize($size);
을 시도하지만 내부 서버 오류/금지 메시지가 나타납니다.
당신은 여기 UploadField의 최대 업로드 파일 크기를 설정하는 당신에게
언제 오류가 발생합니까? – Zauberfisch
이미지를 업로드 할 때 오류가 발생합니다. 이미지의 진행률 막대가 CMS에서 99 %까지로드 된 다음 중지되어이 오류를 표시합니다. – Steve
새로운 UploadField ('Images', 'Images')를 사용하면 같은 문제가 발생합니다. SortableUploadField 대신! – Steve