docs: Fix hook example when accessing upload metadata

Closes https://github.com/tus/tusd/issues/545
This commit is contained in:
Marius 2021-10-29 11:01:47 +02:00 committed by GitHub
parent 38207e3dcd
commit 48ffebec56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
filename=$(cat /dev/stdin | jq .MetaData.filename) filename=$(cat /dev/stdin | jq .Upload.MetaData.filename)
if [ -z "$filename" ]; then if [ -z "$filename" ]; then
echo "Error: no filename provided" echo "Error: no filename provided"
exit 1 exit 1