Lompat ke konten
Tools

Max Upload Size Fixer

Raise the upload limit — and get all three values consistent

Berjalan di browser kamu. Tidak ada yang diunggah.

Target
Where can you edit files?

Hosts differ in what they let you touch. Generate the format you can actually use — and if the first one silently does nothing, that usually means your host overrides it, so try the next.

Resulting upload limit

128 MB

settings

wp-config.php can raise WordPress's own memory limit, but it cannot raise PHP's upload_max_filesize — that is a PHP directive, not a WordPress one. If your host locks PHP settings, no amount of wp-config editing will change the upload cap, and you will have to ask them.

Tentang Max Upload Size Fixer

WordPress upload limits are set in three places that must agree: upload_max_filesize, post_max_size, and memory_limit. Set your target size and this emits all three, correctly ordered, for php.ini, .htaccess, and wp-config.php.

FAQ

Pertanyaan

Saya sudah menaikkan upload_max_filesize tapi tidak ada yang berubah. Kenapa?

Karena WordPress memakai nilai TERKECIL dari tiga nilai: upload_max_filesize, post_max_size, dan memory_limit. Menaikkan satu sementara yang lain tetap kecil tidak mengubah apa pun. post_max_size harus lebih besar dari upload_max_filesize, karena body request membawa file plus form di sekitarnya.

Bisakah wp-config.php menaikkan batas upload?

Hanya sebagian, dan ini membuat banyak orang tersandung. wp-config.php bisa menaikkan memory limit WordPress, tapi upload_max_filesize adalah direktif PHP yang biasanya sudah selesai dibaca PHP pada saat WordPress dimuat. Kalau host-mu mengunci pengaturan PHP, sebanyak apa pun editing wp-config tidak akan mengubah batasnya.

Host saya tidak mengizinkan saya mengedit php.ini. Sekarang bagaimana?

Coba file .user.ini di web root-mu — banyak shared host membacanya. Kalau itu juga gagal, batasnya ditegakkan di atas akunmu dan hanya host-mu yang bisa mengubahnya. Minta ke mereka; biasanya cuma tiket satu baris.