Skip to content

image field upload and handling large amount of images #2173

@nurkka

Description

@nurkka
  • Trying to upload ca. 250 images into an image field at once failed with 503 server errors, regardless how high the corresponding PHP settings were.
  • Uploading them in chunks of 20 images per upload and often saving the page worked, but the order of the images was mixed up. Sorting over 200 images in one image field in the page editor was not possible, because in the thumbnail view there are no filenames, and in the details view the UI was getting were shaky and imprecise. It would have taken a very long time to drag & drop the images into the right places.
  • Uploading the images as one zip archive worked, and the order was correct. But the images weren't displayed in the frontend, using a simple foreach loop. In fact, the image array returned 0 items in the frontend, while everything was okay in the backend. This behaviour could be resolved by uploading one additional image to the image field, not via zip upload, and saving the page. After that, the image field returned the correct amount of images, and the foreach loop worked.

Used versions: PW 3.0.246 and PHP 8.2.29

=> After uploading a zip file of images, the image array should be correctly initialized.
=> It should be possible to upload a large amount of images also directly as images, not having to use a zip file (because of the actual users)
=> Perhaps the UI of the image field could be optimized for larger amounts of images (filenames in thumbnail mode, better drag&drop).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions