Carlos Hervas Ortega
Carlos Hervas Ortega

Reputation: 151

Upload: Failed to Write File to Disk on Images > 1MB

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:

  1. hard disk full <-- not full
  2. folder chmod <-- works with images under 1MB

Upvotes: 1

Views: 372

Answers (1)

Alex
Alex

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

Related Questions