What this problem is
Uploads fail with errors like "Unable to create directory" or the Media Library cannot write files.
Why it happens
- Incorrect permissions on
wp-content/uploads - Wrong owner/group after a migration
- Disk is full
Prerequisites
- FTP/File Manager/SSH access
- Ability to check disk usage
Diagnosis
- Confirm the exact error message in wp-admin.
- Check if
wp-content/uploadsexists and is writable. - Check disk space on the hosting account.
Step-by-step (detailed)
- Set folder permissions on
wp-contentanduploadsto 755. - Set file permissions inside uploads to 644.
- Ensure the correct ownership for the web server user (hosting-specific).
- Retry uploading a small image.
Expected results
- Uploads succeed
- Media Library can write files
What to do if it fails
- If disk is full, free space and retry.
- If ownership is wrong, ask hosting support to fix it.
- Disable security rules that block uploads (WAF/mod_security) temporarily.
Best practices
- After migrations, verify permissions and ownership immediately.
- Keep a margin of free disk space.
- Use an image optimization workflow to reduce storage.