Skip to content

Commit f7cf7ab

Browse files
committed
Document new hook return value
1 parent ca1fdb4 commit f7cf7ab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/_advanced-topics/hooks.md

+7
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ Below you can find an annotated, JSON-ish encoded example of a hook response:
162162
// to the client.
163163
"RejectUpload": false,
164164

165+
// RejectTermination will cause upload terminations via DELETE requests to be rejected,
166+
// allowing the hook to control whether associated resources are deleted.
167+
// This value is only respected for pre-terminate hooks. For other hooks,
168+
// it is ignored. Use the HTTPResponse field to send details about the rejection
169+
// to the client.
170+
"RejectTermination": false,
171+
165172
// ChangeFileInfo can be set to change selected properties of an upload before
166173
// it has been created.
167174
// Changes are applied on a per-property basis, meaning that specifying just

0 commit comments

Comments
 (0)