by Andy
Four rounds to upload several photos
You picked three, one uploaded. Four different fixes, the same symptom every time.
A form on a site built here let you pick one photo at a time. The capability to pick several was installed, loaded and hooked up, and it did nothing.
The path had four points where it could break, and from the outside all four look identical: I pick several, one uploads.
- The filter looked for the word "image" in the field, and a real form writes .jpg, .png, .webp.
- The list of picked files was read at upload time, and the form clears the field before that, so you can pick the same one again.
- The photo is resized before being sent, so what arrives is not the same file that was picked.
- And the first two fixes each covered one point.
What changed
You do not patch one symptom at a time: you instrument the whole path. There is a bench that runs the full circle — pick, upload, save, read back, see — against a copy of the server, so next time the point that breaks gets named instead of guessed.
And the other half, the one that matters to whoever uses 54: a capability you cannot see is indistinguishable from a broken one. The form now says you can pick several, and after uploading it shows the thumbnails with the count. That is the answer you previously had to ask for with a screenshot.