Reputation: 151
My site runs Wordpress 4.6.1. When I upload an image greater than 1MB this error appears
Upload: Failed to Write File to Disk
This is my server config:
root@beta:~# grep --color -R client_max_body_size /etc/nginx/nginx.conf
client_max_body_size 50M;
root@beta:~# GET websitename.net/lainfo.php|egrep 'post_max_size|upload_max_filesize'
<tr><td class="e">post_max_size</td><td class="v">100M</td><td class="v">100M</td></tr>
<tr><td class="e">upload_max_filesize</td><td class="v">100M</td><td class="v">100M</td></tr>
root@beta:~#
I checked the following common issues to no avail:
Upvotes: 1
Views: 372
Reputation: 2775
Try to enable all this settings:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
Upvotes: 1