Check the uncertain boundary
Find whether your first handler stored the file or notified the user before its response failed. Distinguish repeated delivery processing from a distinct prediction.
Make reprocessing safe
Resume a missing local action while suppressing an already recorded one, including notification. Test both a repeated callback and an interruption before acknowledgment.
Example
The first request can save the media and time out just before returning success. The retried request should discover that stored state.
Pass condition
Replaying the same completed message twice creates one customer delivery and one record of the files.