public function setAutoEtag()
    {
        $this->setEtag(base64_encode(hash_file('sha256', $this->file->getPathname(), true)));

        return $this;
    }
public function setAutoEtag()
    {
        $this->setEtag(base64_encode(hash_file('sha256', $this->file->getPathname(), true)));

        return $this;
    }
public function setAutoEtag ( ) { $ this -> setEtag ( base64_encode ( hash_file ( 'sha256' , $ this -> file -> getPathname ( ) , true ) ) ) ; return $ this ; }
Automatically sets the ETag header according to the checksum of the file.
Automatically sets the ETag header according to the checksum of the file .