Troubleshooting Image Upload Issues (Firstserv)
If you’re experiencing problems uploading images to your WordPress website, the issue is usually related to permissions, file size limits, or server configuration. Below are the most common causes and how to resolve them.
1. File Permission Issues
Incorrect permissions on your uploads directory can prevent files from being uploaded.
✅ Fix: Set Correct Permissions
- Log in to cPanel → File Manager
- Navigate to:
wp-content/uploads/ - Set:
- Folders:
755 - Files:
644
- Folders:
Command Line (SSH)
2. Maximum Upload Size Too Low
Your hosting environment may restrict the maximum allowed upload size.
✅ Fix: Increase Upload Limits
- Go to cPanel → Select PHP Version → Options
- Adjust:
upload_max_filesize(e.g. 64M or higher)post_max_size(equal to or greater than upload size)max_execution_time(e.g. 300)max_input_time(e.g. 300)
3. PHP Memory Limit
Insufficient PHP memory can cause uploads to fail, particularly for large files.
✅ Fix: Increase Memory Limit
- In cPanel → Select PHP Version → Options
- Set:
memory_limitto 256M or 512M
4. Unsupported File Types
WordPress supports standard image formats such as:
- JPG / JPEG
- PNG
- GIF
Files like SVG are blocked by default for security reasons.
✅ Fix: Use Supported Formats
- Convert images to JPG or PNG
- Or install a plugin (e.g. Safe SVG) if you need SVG support
5. Missing Temporary Folder
Uploads may fail if WordPress cannot access a temporary directory.
✅ Fix: Define a Temp Directory
Add the following to your wp-config.php:
- Ensure the
/temp/folder exists - Set permissions to
755
6. Browser Cache Issues
Sometimes uploads succeed, but your browser shows outdated content.
✅ Fix
- Clear your browser cache
- Try a different browser or use incognito mode
7. LiteSpeed Cache Conflicts
Caching tools like LiteSpeed Cache can occasionally interfere with uploads.
✅ Fix
- In WordPress, go to:
LiteSpeed Cache → Manage - Click Purge All
Also check that object cache settings are not causing conflicts.
8. Plugin or Theme Conflicts
Outdated or incompatible plugins/themes can disrupt uploads.
✅ Fix
- Temporarily disable all plugins and test uploads
- Re-enable plugins one by one to find the cause
- Switch to a default theme (e.g. Twenty Twenty-Three) to rule out theme issues
9. Security Restrictions (ModSecurity)
Server security rules may block uploads in some cases.
✅ Fix
- In cPanel, locate ModSecurity
- Temporarily disable it for your domain
- Test your upload again
If this resolves the issue:
- Adjust the rule rather than leaving it disabled permanently
Summary
Most upload issues are caused by:
- Incorrect permissions
- Upload limits or memory restrictions
- Plugin or theme conflicts
- Server security settings
By checking each of these areas, you can quickly identify and resolve the problem.
If you’re still unable to upload images after following these steps, the Firstserv support team is always available to help diagnose and resolve the issue.
