@php $attachmentMaxKb = submission_note_attachment_max_file_kb(); $attachmentMaxBytes = $attachmentMaxKb * 1024; $attachmentMaxMb = round($attachmentMaxKb / 1024, 1); $appMaxMb = \App\Services\SubmissionNoteAttachmentService::MAX_FILE_KB / 1024; $phpIni = submission_note_php_upload_ini_display(); $serverLimitLow = $attachmentMaxMb < $appMaxMb; @endphp
PDF, JPG, PNG, GIF, WEBP, WebM/MP3 audio — up to {{ (int) $appMaxMb }} MB each in FormHub, up to 5 files. @if($serverLimitLow) On this server PHP currently allows about {{ $attachmentMaxMb }} MB per file (upload_max_filesize={{ $phpIni['upload'] }}, post_max_size={{ $phpIni['post'] }}). @else Max {{ $attachmentMaxMb }} MB each on this server. @endif
@if($serverLimitLow)
To allow larger uploads on live: deploy public/.user.ini (or set in cPanel → MultiPHP INI Editor) — upload_max_filesize = 26M and post_max_size = 160M, then restart PHP or wait a few minutes.
@endif
@once @push('scripts') @endpush @endonce