From 48ffebec56fcf3221461b3f8cbe000e5367e2d48 Mon Sep 17 00:00:00 2001 From: Marius Date: Fri, 29 Oct 2021 11:01:47 +0200 Subject: [PATCH] docs: Fix hook example when accessing upload metadata Closes https://github.com/tus/tusd/issues/545 --- examples/hooks/pre-create | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/hooks/pre-create b/examples/hooks/pre-create index a031ee9..e3fdced 100755 --- a/examples/hooks/pre-create +++ b/examples/hooks/pre-create @@ -1,6 +1,6 @@ #!/bin/sh -filename=$(cat /dev/stdin | jq .MetaData.filename) +filename=$(cat /dev/stdin | jq .Upload.MetaData.filename) if [ -z "$filename" ]; then echo "Error: no filename provided" exit 1