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

  1. Log in to cPanel → File Manager
  2. Navigate to:
    wp-content/uploads/
    
  3. Set:
    • Folders: 755
    • Files: 644

Command Line (SSH)

 
 
 
 
 
 
Shell
 
 
chmod -R 755 /home/your_user/public_html/wp-content/uploads/
 
 

2. Maximum Upload Size Too Low

Your hosting environment may restrict the maximum allowed upload size.

Fix: Increase Upload Limits

  1. Go to cPanel → Select PHP Version → Options
  2. 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

  1. In cPanel → Select PHP Version → Options
  2. Set:
    • memory_limit to 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:

 
 
 
 
 
 
PHP
 
 
define('WP_TEMP_DIR', '/home/your_user/public_html/wp-content/temp/');
 
 
  • 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

  1. In WordPress, go to:
    LiteSpeed Cache → Manage
  2. 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

  1. In cPanel, locate ModSecurity
  2. Temporarily disable it for your domain
  3. 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.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to install the Wordpress Litespeed cache plugin

  LiteSpeed Cache – What It Is and How It Helps If you’re running a WordPress website and...

How to disable the WordPress CRON job and set it up in cPanel

  Optimising WordPress Cron (wp-cron) – Firstserv WordPress does not...

Fixing WordPress mixed content issues

  Fixing Mixed Content Warnings When you visit a website using https://, your browser expects...

How to optimise your WordPress site

Optimising Your WordPress Website (Firstserv Guide) WordPress is a...

Configuring Redis Object Caching using Litespeed Cache

Object Caching and Redis (Firstserv Guide) What is Object Caching? Object caching is a...