The uploaded file could not be moved to 📝 WordPress

WordPress: The uploaded file could not be moved to wp-content/uploads/2026/10

PHP received the upload but couldn’t move it from the temp directory into uploads — permissions, disk space, or open_basedir/temp dir problems.

Seen on: WordPress

Meaning

PHP writes uploads to upload_tmp_dir first, then WordPress moves them. If the uploads folder isn’t writable, the disk/quota is full, or open_basedir excludes the temp dir, the move fails.

Common causes

  • uploads/ not writable by PHP
  • Disk or account quota full
  • upload_tmp_dir missing/not writable
  • open_basedir restriction

⚡ Quick fix

  1. Fix ownership/permissions of uploads
  2. Free disk space
  3. Set a valid upload_tmp_dir writable by PHP

Detailed fix by platform

Linux

  1. bash
    php -i | grep -E 'upload_tmp_dir|open_basedir'
    sudo chown -R www-data:www-data /var/www/html/wp-content/uploads
    df -h

How to diagnose

  1. Folder — Writable?
  2. Temp — upload_tmp_dir
  3. Disk — Space/quota

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.