Morning all,
I would like to use the pre-create hook to check if the file being uploaded is already present, so I can avoid uploading it again. To do this, I need to get the filename, but it doesn’t seem to have any metadata available.
When I echo out the environment variables available in the pre-create hook, I get the following:
TUS_OFFSET=0
HOSTNAME=7f1256b75b52
SHLVL=1
HOME=/home/tusd
TUS_SIZE=1050921
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/srv/tusd-hooks
TUS_ID=
post-check it is available but then it has done the upload and i want to avoid that
If anyone can help me retrieve the filename or provide guidance on accessing the necessary metadata in the pre-create hook, it would be greatly appreciated.
Thank you!