src/Upload/UploadClass.php
public function setTargetfilename()
	{
		//set the value of target file name
		$this->target_file_name = sprintf('%s.%s',sha1_file($_FILES[$this->file_name]['tmp_name']),$this->file_type);

		return $this;

	}
public function setTargetfilename()
	{
		//set the value of target file name
		$this->target_file_name = sprintf('%s.%s',sha1_file($_FILES[$this->file_name]['tmp_name']),$this->file_type);

		return $this;

	}
public function setTargetfilename ( ) { //set the value of target file name $ this -> target_file_name = sprintf ( '%s.%s' , sha1_file ( $ _FILES [ $ this -> file_name ] [ 'tmp_name' ] ) , $ this -> file_type ) ; return $ this ; }
This method sets a unique target file name

@param null
@return \Object $this instance
This method sets a unique target file name