本文へスキップ
ツール

Max Upload Size Fixer

Raise the upload limit — and get all three values consistent

ブラウザ内で動きます。何もアップロードされません。

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.

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

よくある質問

upload_max_filesize を上げても何も変わりません。なぜですか?

WordPress は upload_max_filesize、post_max_size、memory_limit の 3 つのうち最も小さい値を使うからです。ひとつを上げても別のものが小さいままなら何も変わりません。リクエストの本文にはファイルとその周りのフォームが含まれるため、post_max_size は upload_max_filesize より大きくなければなりません。

wp-config.php でアップロード上限を上げられますか?

一部だけで、ここで多くの人がつまずきます。wp-config.php は WordPress のメモリ上限を上げられますが、upload_max_filesize は PHP のディレクティブで、WordPress が読み込まれる頃には PHP はたいていすでに読み終えています。ホストが PHP の設定をロックしている場合、wp-config をどれだけ編集しても上限は変わりません。

ホストが php.ini を編集させてくれません。どうすればいい?

Web ルートに .user.ini ファイルを置いてみてください。多くの共有ホストがこれを読み込みます。それも駄目なら、上限はあなたのアカウントより上位で強制されていて、ホストにしか変更できません。ホストに頼みましょう。たいていは一行で済むチケットです。