• Resolved mil0rd

    (@mil0rd)


    I got this warning when I tried to update the product with the uploaded video:

    Request Entity Too Large

    The requested resource does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Martin Valchev

    (@martinvalchev)

    Hi,

    While trying to update the product with the uploaded video, I encountered the following error:

    Request Entity Too Large

    This means the video file size exceeds the current upload limits set by the server.

    To resolve this and allow the video upload to work properly, you (or your hosting provider) will need to increase a few server settings.

    If you’re using cPanel:

    1. Log into your cPanel
    2. Go to Select PHP Version > Options
    3. Set the following values:
    upload_max_filesize = 128M
    post_max_size = 128M
    memory_limit = 256M

    If you’re unsure how or don’t have access

    Hello,

    Please increase the following PHP limits for my hosting account:

    upload_max_filesize = 128M
    post_max_size = 128M
    memory_limit = 256M

    Thank you!

    Once these limits are updated, the video upload should work without any issues.

    Let me know once it’s done or if you need help with anything.

    Best regards,

    Thread Starter mil0rd

    (@mil0rd)

    This is the PHP configuration that I’m using:

    Link to the image: https://ibb.co/RkCs0WQw

    And I still having the same issue

    • This reply was modified 3 weeks, 4 days ago by mil0rd. Reason: The image is not loading
    • This reply was modified 3 weeks, 4 days ago by mil0rd.
    Plugin Author Martin Valchev

    (@martinvalchev)

    Thanks for sharing that you’re still experiencing the issue.

    Even if your upload_max_filesize, post_max_size, and memory_limit values are set correctly in PHP, some hosting environments (especially NGINX-based ones) also enforce their own upload limits separately from PHP.

    If you’re using NGINX, you’ll also need to check or ask your hosting provider to update this directive in the NGINX config:

    client_max_body_size 128M;

    You can include this in your NGINX config (usually in nginx.conf) or ask your hosting support to apply it for you.

    Let me know which server stack you’re using (Apache, NGINX, LiteSpeed, etc.) 

    Plugin Author Martin Valchev

    (@martinvalchev)

    A few more things to check:

    1. Have you tried uploading a different (smaller) video file? This will help rule out whether the issue is specific to that file.
    2. How large is the video file you’re trying to upload?
      If it’s significantly larger than 128MB, you may need to raise the limits even further.
    3. If you’re still seeing the same error after adjusting the PHP values, make sure the following are increased as well:
      upload_max_filesize , post_max_size, memory_limit
      And if your server uses NGINX, don’t forget:
    client_max_body_size 256M;

    Could you share your current PHP config values and also let me know what server stack you’re using (NGINX, Apache, etc.)? That’ll help me assist you more precisely.

    Good day Martin.. I’m experiencing the same issue.. client_max_body_size is set at 268435456 in my vhost /… nginx.conf ..

    It’s actually repeated twice in this file under 2 server bloc. If I comment them out, as soon as I restart nginx, they are being re-written.. If I add it to my nginx.conf or the additional nginx directives, I get an error that it already exists. the videos I’m trying to attach are 30megs approx. they attach without issue, it’s when I update/save the page that I get this error.

    thx

    Here are my PHP settings..

    memory limit 1024m

    post_max_size 512M

    upload_max_filesize 256M

    Plugin Author Martin Valchev

    (@martinvalchev)

    Hi Marc,

    Thanks for the detailed info – that helps a lot.

    From what you’re describing, the issue is likely not with the video upload itself (since 30MB files attach just fine), but rather with the product update/save request, which may still be exceeding a configured limit somewhere else in the stack.

    A few things to consider:

    1. Nginx directive override: If client_max_body_size is being re-written on NGINX restart, it’s likely managed by a config management tool or panel (like Plesk, cPanel, or a custom template system). You may want to check:
      • If you’re using a control panel, it may have its own upload limit settings that override manual config edits.
      • The directive should ideally be set only once – if it’s defined in two places, NGINX might throw a warning or ignore one of them.
    2. Try moving client_max_body_size to the http block in your global nginx.conf (not per vhost), and remove duplicates from server blocks if possible. That way it will apply to all virtual hosts uniformly and avoid conflicts.
    3. Payload size during save: Some WooCommerce/product pages can generate large POST data during save (especially with large video preview URLs, metadata, or multiple attachments). Even with high upload_max_filesize, the full POST payload might still hit a limit.
      In this case, check:
      • fastcgi_buffers and fastcgi_buffer_size (if using FastCGI)
      • Whether any security module (e.g., ModSecurity) is interfering
      • Whether a reverse proxy (Cloudflare, etc.) is truncating large requests
    4. Just to isolate the problem, could you try:
      • Saving a product with the same video but minimal other content (no long description, no other media) – does the error still occur?
      • Temporarily removing the video and updating the product – just to confirm whether it’s related to the video presence in metadata, not the file upload itself

    Let me know and I’ll be happy to help dig deeper.

    Thanks for the quick response Martin.. Guess what.. I went with a wild guess, and it turned out to be the good one.. I changed the client_max-post_size from 268435456 to 265M .. saved, restarted.. checked it was still written like that.. and voila! works like a charm now!

    cheers!

    Plugin Author Martin Valchev

    (@martinvalchev)

    I’m really glad to hear your issue is resolved -that’s great news! I hope my suggestions helped you along the way.

    If you have a moment, it would mean a lot to me if you could leave a review for the plugin. Positive feedback really helps me keep improving and supporting it.

    Here’s the link to leave a review: https://wordpress.org/support/plugin/video-wc-gallery/reviews/?filter=5

    Thanks again and don’t hesitate to reach out if you need anything else!

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.