tus / tusd

Reference server implementation in Go of tus: the open protocol for resumable file uploads
https://tus.github.io/tusd
MIT License
3.09k stars 480 forks source link

FileInfoChanges set in PreFinishHook not available in PostFinishHook #1160

Closed TaridaGeorge closed 4 months ago

TaridaGeorge commented 4 months ago

Question In my PreFinishHook I put some metadata about the file that has been successfully received on the server. The problem is that when the PostFinishHook is called these metadatas are not there. Is this a bug or it is as intended?

Setup details Please provide following details, if applicable to your situation:

Acconut commented 4 months ago

Using FileInfoChanges is currently only possible from the pre-create hook, not the pre-finish hook. If this value is set from pre-finish, it will be ignored. So, yes, this is working as intended for now.

TaridaGeorge commented 4 months ago

Thank you!