Warning: Undefined array key 2 in /home/naoooooo8/naoya-ono.com/public_html/blog/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 15
Warning: Undefined array key 3 in /home/naoooooo8/naoya-ono.com/public_html/blog/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 18
Warning: Undefined array key 4 in /home/naoooooo8/naoya-ono.com/public_html/blog/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 21
Warning: Undefined array key 2 in /home/naoooooo8/naoya-ono.com/public_html/blog/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 27
Warning: Undefined array key 3 in /home/naoooooo8/naoya-ono.com/public_html/blog/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 30
Warning: Undefined array key 4 in /home/naoooooo8/naoya-ono.com/public_html/blog/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 33
エラー原因
nginxの設定で、最大アップロードが1MBになっているためこれ以上大きいファイルはアップロードできない。
対処法
アップロードできるサイズを拡張する。
具体的な手順は次の通り。
以下のコマンドで設定ファイルを開く
sudo vi /etc/nginx/nginx.conf
http{}という項目があるので、この中に以下の記述を追加 。
http {
client_max_body_size 10M;
}
上記により10MBまでアップロードできるようになります。もっと容量が必要な場合は数字を上げてください。
それと、「MB」ではなく「M」なので注意してください。



