src/Tus/Server.php
protected function getClientChecksum()
    {
        $checksumHeader = $this->getRequest()->header('Upload-Checksum');

        if (empty($checksumHeader)) {
            return '';
        }

        list($checksumAlgorithm, $checksum) = explode(' ', $checksumHeader);

        $checksum = base64_decode($checksum);

        if ( ! in_array($checksumAlgorithm, hash_algos()) || false === $checksum) {
            return $this->response->send(null, HttpResponse::HTTP_BAD_REQUEST);
        }

        return $checksum;
    }
protected function getClientChecksum()
    {
        $checksumHeader = $this->getRequest()->header('Upload-Checksum');

        if (empty($checksumHeader)) {
            return '';
        }

        list($checksumAlgorithm, $checksum) = explode(' ', $checksumHeader);

        $checksum = base64_decode($checksum);

        if ( ! in_array($checksumAlgorithm, hash_algos()) || false === $checksum) {
            return $this->response->send(null, HttpResponse::HTTP_BAD_REQUEST);
        }

        return $checksum;
    }
protected function getClientChecksum ( ) { $ checksumHeader = $ this -> getRequest ( ) -> header ( 'Upload-Checksum' ) ; if ( empty ( $ checksumHeader ) ) { return '' ; } list ( $ checksumAlgorithm , $ checksum ) = explode ( ' ' , $ checksumHeader ) ; $ checksum = base64_decode ( $ checksum ) ; if ( ! in_array ( $ checksumAlgorithm , hash_algos ( ) ) || false === $ checksum ) { return $ this -> response -> send ( null , HttpResponse :: HTTP_BAD_REQUEST ) ; } return $ checksum ; }
Verify and get upload checksum from header.

@return string|HttpResponse
Verify and get upload checksum from header .