Ecommerce & Web Infrastructure7 min readUpdated: September 2026

How to Fix Large File Upload Issues in WordPress and WooCommerce

When WordPress or WooCommerce rejects an upload, limits are governed by PHP directives, web server limits, firewalls (WAF), or image processing bottlenecks. Learn to diagnose the root cause and optimize files locally.

Quick 2-Step Diagnostic

1. If the file is heavy (>10 MB): compress PDF or convert photos to WebP to bypass PHP memory exhaustion. 2. If tiny files (<500 KB) also fail: inspect uploads directory permissions or WAF security rules.

Diagnostic workflow diagram for large file upload failures in WordPress and WooCommerce
Methodological diagram: multi-layer diagnosis (PHP, web server, WAF) and targeted resolution path.
Mascota oficial de BreadPDF
Hosting & Performance

Optimize your assets client-side before uploading to spare your server

Uploading pre-compressed WebP and optimized PDFs prevents PHP memory exhaustion on shared hosting, keeping your store fast.

The 3 Critical PHP Directives Governing Uploads

Contrary to popular belief, WordPress does not arbitrarily restrict files itself: upload ceilings are dictated by PHP runtime directives:

DIRECTIVA 1

upload_max_filesize

El pes individual màxim permès per a un sol fitxer.

DIRECTIVA 2

post_max_size

La mida màxima de tota la petició HTTP POST conjunta.

DIRECTIVA 3

memory_limit

Memòria RAM assignada a PHP per processar i reescalar fotos.

How to Resolve Upload Errors by Optimizing Assets

Catalogs & Manuals

Compress PDF Catalog on BreadPDF

Shrink wholesale catalogs from 30–40 MB down below 5 MB locally without losing text fidelity.

Compress PDF now
Product Photos

Convert Images to WebP on BreadPDF

Convert heavy camera JPGs to WebP to slash byte size by up to 75% and prevent PHP memory crashes.

Convert to WebP now

Action Matrix for Online Stores

SymptomInitial CheckRecommended Action
Heavy product photo (> 5 MB)Inspect pixel canvas and formatConvert to WebP in BreadPDF
PDF catalog rejected by serverCheck ceiling in Site HealthCompress PDF in BreadPDF
PHP upload limit too low (< 8 MB)Hosting control panel (cPanel/Plesk)Request PHP limit increase from host

Frequently Asked Questions

What is the universal maximum upload size in WordPress?
WordPress does not have a single universal upload limit. The upload ceiling displayed in the Media Library is governed by the server's PHP directives ('upload_max_filesize' and 'post_max_size'), web server settings (like Nginx 'client_max_body_size'), and hosting account quotas.
Where can I check the actual upload limit in WordPress?
Navigate to Tools → Site Health → Info tab → Media section (or Server section). WordPress officially reports both the 'Max effective upload size' and the 'PHP post_max_size'.
What is the difference between upload_max_filesize and post_max_size?
'upload_max_filesize' sets the maximum binary weight of a single uploaded file. 'post_max_size' defines the ceiling for the entire HTTP POST request body. Therefore, 'post_max_size' must always be equal to or larger than 'upload_max_filesize'.
Does WooCommerce impose a separate file limit?
No. WooCommerce relies on the underlying WordPress media architecture and server PHP execution environment. For large downloadable products, official WooCommerce documentation suggests using redirect or external storage methods rather than direct PHP uploads.
Why does WordPress display a generic 'HTTP error' during upload?
'HTTP error' is an umbrella symptom indicating that the server could not finalize the upload transaction. Common culprits include PHP memory exhaustion during thumbnail generation, gateway timeouts, cloud firewall (WAF) blocks, or restrictive file system permissions on 'wp-content/uploads'.
Can resizing or optimizing an image resolve the error?
Yes. When the failure is triggered by high-resolution photos that exceed PHP memory while generating thumbnail crops, converting to modern WebP and scaling to realistic web dimensions immediately bypasses server constraints.
Does compressing a PDF help with WordPress uploads?
Yes. Compressing a product brochure, technical datasheet, or corporate document brings the payload safely below your host's maximum POST limit without sacrificing readability.
What should I investigate if a tiny file also fails to upload?
If a 200 KB test file fails, file weight is not the root cause. Inspect file permissions on 'wp-content/uploads' (standard is 755 for folders), check web application firewall (WAF) logs, temporarily disable conflicting image optimization plugins, and review server PHP error logs.

Official Primary Documentation

  • WordPress Developer Resources: Advanced Administration Handbook — Modifying PHP Settings.
  • WooCommerce Documentation: Digital/Downloadable Product Handling and File Limits.
  • PHP Manual: Core php.ini directives handling file uploads and memory allocation.