Tips – How to set the PHP maximum upload file size in an .htaccess

Tips - How to set the PHP maximum upload file size in an .htaccess

Ini pengalaman pribadi gw saat mau install theme WordPress, muncul halaman kaya gini:

Trus gw google buat cari cara, biar bisa naikin batas max upload file, dan ketemulah kodenya, sebagai berikut:


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

#  BEGIN Increases Max Upload Size
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value max_execution_time 900
php_value max_input_time 900
#  END Increases Max Upload Size

silahkan tambahkan kode diatas, pada file .htaccess

Semoga berhasil