Upload Error in Chrome: Request Entity Too Large – Tried Everything, Still Stuck

I’m facing a persistent issue with my WordPress site when trying to upload large files in Google Chrome. The error I keep encountering is:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>413 Request Entity Too Large
</code>
<code>413 Request Entity Too Large </code>
413 Request Entity Too Large

I’ve tried troubleshooting this extensively, but nothing seems to work. Here’s my setup and what I’ve done so far:

Setup:

  • Environment: WordPress in a Docker container.
  • Server: NGINX as a reverse proxy using NGINX Proxy Manager.
  • PHP: Running with a dedicated php.ini file.
  • Browser: Issue is consistent
  • Plugin: https://de.wordpress.org/plugins/all-in-one-wp-migration/

He is always uploading up to 100% and than i get this issue.
Uploading up to 100%

enter image description here

Different Browser, same way, same issue.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>services:
db:
image: mariadb:10.5
container_name: wp_db
restart: always
environment:
MYSQL_ROOT_PASSWORD: ""
volumes:
- ./volumes/db_data:/var/lib/mysql
networks:
- wpnet
redis:
image: redis:6-alpine
container_name: wp_redis
restart: always
command: ["redis-server", "--appendonly", "yes"]
volumes:
- ./volumes/redis_data:/data
networks:
- wpnet
app:
image: 'jc21/nginx-proxy-manager:latest'
container_name: proxy_manager
restart: unless-stopped
ports:
- '80:80'
- '443:443'
- '127.0.0.1:81:81'
# - '81:81'
environment:
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "proxymanager"
DB_MYSQL_PASSWORD: ""
DB_MYSQL_NAME: "proxymanager"
volumes:
- ./volumes/proxymanager/data:/data
- ./volumes/proxymanager/letsencrypt:/etc/letsencrypt
networks:
- wpnet
wordpress1:
image: wordpress:latest
container_name: wordpress1
restart: always
environment:
WORDPRESS_DB_HOST: "db:3306"
WORDPRESS_DB_USER: "wordpress1"
WORDPRESS_DB_PASSWORD: ""
WORDPRESS_DB_NAME: "wordpress1"
WORDPRESS_DEBUG: "true"
volumes:
- ./volumes/wordpress1:/var/www/html
- ./volumes/wordpress1/custom_configs/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
networks:
- wpnet
networks:
wpnet:
driver: bridge
</code>
<code>services: db: image: mariadb:10.5 container_name: wp_db restart: always environment: MYSQL_ROOT_PASSWORD: "" volumes: - ./volumes/db_data:/var/lib/mysql networks: - wpnet redis: image: redis:6-alpine container_name: wp_redis restart: always command: ["redis-server", "--appendonly", "yes"] volumes: - ./volumes/redis_data:/data networks: - wpnet app: image: 'jc21/nginx-proxy-manager:latest' container_name: proxy_manager restart: unless-stopped ports: - '80:80' - '443:443' - '127.0.0.1:81:81' # - '81:81' environment: DB_MYSQL_HOST: "db" DB_MYSQL_PORT: 3306 DB_MYSQL_USER: "proxymanager" DB_MYSQL_PASSWORD: "" DB_MYSQL_NAME: "proxymanager" volumes: - ./volumes/proxymanager/data:/data - ./volumes/proxymanager/letsencrypt:/etc/letsencrypt networks: - wpnet wordpress1: image: wordpress:latest container_name: wordpress1 restart: always environment: WORDPRESS_DB_HOST: "db:3306" WORDPRESS_DB_USER: "wordpress1" WORDPRESS_DB_PASSWORD: "" WORDPRESS_DB_NAME: "wordpress1" WORDPRESS_DEBUG: "true" volumes: - ./volumes/wordpress1:/var/www/html - ./volumes/wordpress1/custom_configs/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini networks: - wpnet networks: wpnet: driver: bridge </code>
services:
  db:
    image: mariadb:10.5
    container_name: wp_db
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: ""
    volumes:
      - ./volumes/db_data:/var/lib/mysql
    networks:
      - wpnet

  redis:
    image: redis:6-alpine
    container_name: wp_redis
    restart: always
    command: ["redis-server", "--appendonly", "yes"]
    volumes:
      - ./volumes/redis_data:/data
    networks:
      - wpnet

  app:
    image: 'jc21/nginx-proxy-manager:latest'
    container_name: proxy_manager
    restart: unless-stopped
    ports:
      - '80:80'
      - '443:443'
      - '127.0.0.1:81:81'
#      - '81:81'
    environment:
      DB_MYSQL_HOST: "db"
      DB_MYSQL_PORT: 3306
      DB_MYSQL_USER: "proxymanager"
      DB_MYSQL_PASSWORD: ""
      DB_MYSQL_NAME: "proxymanager"
    volumes:
      - ./volumes/proxymanager/data:/data
      - ./volumes/proxymanager/letsencrypt:/etc/letsencrypt
    networks:
      - wpnet

  wordpress1:
    image: wordpress:latest
    container_name: wordpress1
    restart: always
    environment:
      WORDPRESS_DB_HOST: "db:3306"
      WORDPRESS_DB_USER: "wordpress1"
      WORDPRESS_DB_PASSWORD: ""
      WORDPRESS_DB_NAME: "wordpress1"
      WORDPRESS_DEBUG: "true"
    volumes:
      - ./volumes/wordpress1:/var/www/html
      - ./volumes/wordpress1/custom_configs/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
    networks:
      - wpnet

networks:
  wpnet:
    driver: bridge

What I’ve Tried:

1. PHP Configuration

I ensured the following settings in my php.ini:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>memory_limit = 1G
upload_max_filesize = 5G
post_max_size = 5G
max_execution_time = 600
</code>
<code>memory_limit = 1G upload_max_filesize = 5G post_max_size = 5G max_execution_time = 600 </code>
memory_limit = 1G
upload_max_filesize = 5G
post_max_size = 5G
max_execution_time = 600

I verified these values using a phpinfo() page, and they are applied correctly.


2. NGINX Configuration

I added the following directive in NGINX Proxy Manager under the “Custom Nginx Configuration” for my WordPress site:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>client_max_body_size 5G;
</code>
<code>client_max_body_size 5G; </code>
client_max_body_size 5G;

This didn’t resolve the issue.


3. WordPress Configuration

In my wp-config.php, I added:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>@ini_set('upload_max_filesize', '5G');
@ini_set('post_max_size', '5G');
@ini_set('memory_limit', '1G');
@ini_set('max_execution_time', '600');
</code>
<code>@ini_set('upload_max_filesize', '5G'); @ini_set('post_max_size', '5G'); @ini_set('memory_limit', '1G'); @ini_set('max_execution_time', '600'); </code>
@ini_set('upload_max_filesize', '5G');
@ini_set('post_max_size', '5G');
@ini_set('memory_limit', '1G');
@ini_set('max_execution_time', '600');

I also enabled debugging with:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);
</code>
<code>define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', true); </code>
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);

No relevant errors are logged.


4. Testing with Smaller Files

Uploads of smaller files work fine, so this seems related to size limits.


5. Error Logs

  • Docker Logs: Show no errors related to the issue.
  • PHP Logs: Nothing unusual or helpful logged.
  • NGINX Logs: No errors indicating the cause.

What I Need:

I’ve exhausted all the usual troubleshooting steps, but the issue persists. Has anyone encountered this before? Are there any browser-specific settings or additional configurations I might be missing for Chrome?

Any help would be greatly appreciated!

Thanks in advance for your insights.

4

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật