littlewonders/wordpress-ratelimit-image-upload

There is no license information available for the latest version (1.1.1) of this package.

Ratelimit uploads to Gutenberg galleries

1.1.1 2023-01-14 00:40 UTC

This package is auto-updated.

Last update: 2025-07-14 06:42:06 UTC


README

What's this for?

This is a wordpress plugin created to solve a very specific issue with the Gutenberg editor.

If the Wordpress administration interface is behind a reverse proxy such as Cloudflare or AWS Cloudfront, oftentimes there is a request execution time limit that cannot be changed. Usually this is 60 seconds.

When an editor uploads a large amount of large images to a Gutenberg gallery block (common in photography sites), combined with a slow connection this could mean that individual requests go over 60 seconds. For example, 10 requests may be running concurrently each uploading at 100kbps, causing them to take >60 seconds to upload.

With this plugin, image uploads from the Gutenberg editor are queued to run with a maximum concurrency limit. For example, for the following image upload:

Number of Images100 images
Image size each1mb
Internet connection speed1mb/s

The request characteristics look like this:

GutenbergWith Plugin (Concurrency = 5)
Total time100 seconds100 seconds
Average time per request100 seconds5 seconds
Average per-request upload speed10kbps200kbps
Max open requests at any one time1005

As you can see, the plugin doesn't improve the total time needed to perform the upload (that would be impossible) but rather speeds up individual uploads by running less at once.

As a side-benefit, this also reduces server load by keeping less connections open simeultaneously.

How do I install this?

See readme.txt