Skip to content

Commit

Permalink
docs: Fix hook example when accessing upload metadata
Browse files Browse the repository at this point in the history
Closes #545
  • Loading branch information
Acconut authored Oct 29, 2021
1 parent 38207e3 commit 48ffebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/hooks/pre-create
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 48ffebe

Please sign in to comment.