• Hi,

    When uploading a lots of pictures to a WordPress site using Gutenberg, the cpu and memory usage can spike quite a lot.

    That’s because it queues the HTTP requests all at once, sending them as fast as the client can upload them. That’s especially an issue on smaller hosts, as it can slow down the site to a crawl or cause oom errors.
    For reference, this is something that doesn’t happen when using the Upload Media page as it uploads the images sequentially.

    I get that doing it way makes the uploads go faster if the server is able to handle that load, but would it be possible to limit the number of concurrent uploads so smaller hosts don’t get overwhelmed if a single users with a decent upload speed decides to drop a folder with a lot of pictures taken from their phone.

    Not sure if that’s the right forum to post about this, please let me know if there’s a more appropriate channel or if you need more info.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator threadi

    (@threadi)

    How exactly do you upload images in the Block Editor? For example, when I create a gallery, I see the Media Library dialog. There, I can upload multiple images, and as far as I can tell, they are uploaded one after the other. I’m referring to this view:

    https://snipboard.io/K3S1gF.jpg

    How do you do it?

    Note: Work is currently underway on changes related to images in the Block Editor. For example, here is a link to the issue for an improved image editor: https://github.com/WordPress/gutenberg/issues/73771

    You may find an issue on the Gutenberg team’s site that better suits your situation, or you can create one yourself: https://github.com/WordPress/gutenberg/issues

    Thread Starter ngoncalves

    (@ngoncalves)

    I probably wasn’t clear in my previous message so I’m sorry about that.

    Yes the Media Library handles things sequentially however you can also directly open your file manager and upload from there or dropping files from your file manager into the editor which will create a Gallery block for you. In both cases, it will try to upload files as fast as your browser allows it.

    Link to Media Block screenshot: https://ibb.co/G4pQXSvv

    • This reply was modified 3 days ago by ngoncalves.
    Moderator threadi

    (@threadi)

    Your screenshot shows the Gallery block, where you can also drag and drop files. If you’d like to see improvements made to this feature, I’d recommend submitting a request to the Gutenberg team: https://github.com/WordPress/gutenberg/issues/ – their developers can review it there.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.