public function file(SplFileInfo $file)
	{
		return substr($this->base(hash_file('sha256', $file->getRealPath(), true)), 0, 32);
	}
public function file(SplFileInfo $file)
	{
		return substr($this->base(hash_file('sha256', $file->getRealPath(), true)), 0, 32);
	}
public function file ( SplFileInfo $ file ) { return substr ( $ this -> base ( hash_file ( 'sha256' , $ file -> getRealPath ( ) , true ) ) , 0 , 32 ) ; }
Make hash from uploaded file.

@param  SplFileInfo $file
@return string
Make hash from uploaded file .