sendou.ink/app/features/art
Kalle c37b52dfb2 Fix new art form double-upload and premature submit
The file <input> had name="img", so new FormData(form) already included
the original uncompressed file under "img". handleSubmit then appended
the compressed version with the same key, and FormData.append doesn't
overwrite — every save uploaded two files to S3 (the second clobbering
the first under the same generated filename).

The submit button also only checked the full-size img state, not
smallImg. Both Compressor instances run in parallel, so Save could fire
before the thumbnail finished compressing — saving art with no
thumbnail, and (under slow MinIO on CI) making the e2e test flaky as
two serial S3 uploads pushed past the 5s toHaveURL timeout.
2026-05-03 11:15:44 +03:00
..
actions Validate image extensions serverside 2026-04-15 21:09:20 +03:00
components Make date time format apply everywhere (#3023) 2026-05-01 10:11:29 +03:00
loaders Delete orphan art tags routine 2026-03-20 18:16:02 +02:00
routes Fix new art form double-upload and premature submit 2026-05-03 11:15:44 +03:00
art-constants.ts Refactor app/constants away 2025-05-31 13:54:34 +03:00
art-schemas.server.ts Upgrade zod package to 4 (#2677) 2025-12-29 20:04:40 +02:00
art-types.ts Refactor art queries to Kysely 2025-10-28 19:25:57 +02:00
art-utils.ts Refactor HACKY_resolvePicture away (#2606) 2025-11-08 13:54:02 +02:00
ArtRepository.server.test.ts Delete orphan art tags routine 2026-03-20 18:16:02 +02:00
ArtRepository.server.ts Delete orphan art tags routine 2026-03-20 18:16:02 +02:00