Document PHP upload limit requirements for graduation bulk upload
This commit is contained in:
@@ -231,7 +231,44 @@ Tanpa ini, file upload publik seperti dokumen dan branding tidak akan tampil.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 4.8 Atur permission
|
### 4.8 Konfigurasi limit upload PHP (wajib untuk bulk upload dokumen lulusan)
|
||||||
|
|
||||||
|
Jika server produksi akan menggunakan fitur **Bulk Upload Dokumen Kelulusan**, pastikan limit upload PHP untuk web server tidak terlalu kecil. Jika tidak disesuaikan, request upload bisa gagal lebih dulu dengan error **413 Content Too Large** sebelum Laravel memproses file.
|
||||||
|
|
||||||
|
Untuk environment Apache + PHP 8.3, edit file:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo nano /etc/php/8.3/apache2/php.ini
|
||||||
|
```
|
||||||
|
|
||||||
|
Pastikan nilai berikut minimal:
|
||||||
|
|
||||||
|
```ini
|
||||||
|
upload_max_filesize = 8M
|
||||||
|
post_max_size = 64M
|
||||||
|
max_file_uploads = 50
|
||||||
|
```
|
||||||
|
|
||||||
|
Setelah diubah, reload Apache:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo systemctl reload apache2
|
||||||
|
```
|
||||||
|
|
||||||
|
Jika perubahan belum terbaca, lakukan restart:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo systemctl restart apache2
|
||||||
|
```
|
||||||
|
|
||||||
|
Catatan:
|
||||||
|
- perubahan ini adalah **konfigurasi server**, bukan source code Laravel
|
||||||
|
- `git pull` saja **tidak cukup** untuk menyelesaikan masalah upload besar / multi-file
|
||||||
|
- setting di atas dibuat agar selaras dengan fitur bulk upload dokumen lulusan yang mendukung banyak file dalam satu batch
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 4.9 Atur permission
|
||||||
|
|
||||||
Pastikan web server user bisa menulis ke folder berikut:
|
Pastikan web server user bisa menulis ke folder berikut:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user