docs: Fix hook example when accessing upload metadata
Closes https://github.com/tus/tusd/issues/545
This commit is contained in:
parent
38207e3dcd
commit
48ffebec56
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue