examples/upload.sh: add validation of EXPIRE environment variable