Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow hooks to override metadata #594

Closed
Murderlon opened this issue Mar 27, 2024 · 1 comment · Fixed by #599
Closed

Allow hooks to override metadata #594

Murderlon opened this issue Mar 27, 2024 · 1 comment · Fixed by #599
Assignees

Comments

@Murderlon
Copy link
Member

Murderlon commented Mar 27, 2024

Allow hooks to override metadata, only metadata not other Upload properties, in a backwards compatible way to precent breaking changes in the hook design. New metadata should probably be validated as well.

@Acconut
Copy link
Member

Acconut commented Apr 8, 2024

In tusd, a pre-create hook can return a FileInfoChanges object, which allows the hook to customize a selected set of properties. Maybe this can serve as an inspiration for tus-node-server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants