Make sure payloads are effectively deleted on error

Author: KerollmopsCreated Dec 11, 2025Updated Aug 19, 2026
Labelsgood first issuebugInternal workaffects costs

We found out that some payloads are not removed from the disk when an error occurs before we are able to put them in the FileStore. I would suggest we should create a temporary temporary file and extract it at the last moment.

Originally posted by @Kerollmops in https://github.com/meilisearch/meilisearch/pull/6000#discussion_r2602149151