From my understanding, when tus invokes hooks like post-receive during an upload, it doesn’t distinguish between chunks sent during the initial upload or during a resumed upload. These hooks are triggered whenever data is received from the client, regardless of whether it’s part of an initial upload or a resumed one.
As a result, any logic implemented within the post-receive hook will apply equally to all chunks of data received during the upload process, regardless of whether it’s a new upload or a resumed one.
If I needed to differentiate between initial uploads and resumed uploads for some reason, would I need to implement additional logic or store metadata about the upload session to track its state?