protected function setAttributes ()
	{
		$file 					= $this->file;	
		$this->fileName 		= $file['name'];
		$this->mimeType 	 	= $file['type'];
		$this->tempPath 		= $file['tmp_name'];
		$this->fileError 		= $file['error'];
		$this->fileSize 		= $file['size'];

		$pathParts 				= pathinfo($this->fileName);
		$this->fileExtension  	= isset($pathParts['extension']) ? ".".strtolower($pathParts['extension']) : "";
		$newUniqueName 			= uniqid("", TRUE).$this->fileExtension;
		$this->newFileName 		= Validate::hasValue($this->newFileName) ? $this->newFileName.$this->fileExtension : $newUniqueName;
	}
protected function setAttributes ()
	{
		$file 					= $this->file;	
		$this->fileName 		= $file['name'];
		$this->mimeType 	 	= $file['type'];
		$this->tempPath 		= $file['tmp_name'];
		$this->fileError 		= $file['error'];
		$this->fileSize 		= $file['size'];

		$pathParts 				= pathinfo($this->fileName);
		$this->fileExtension  	= isset($pathParts['extension']) ? ".".strtolower($pathParts['extension']) : "";
		$newUniqueName 			= uniqid("", TRUE).$this->fileExtension;
		$this->newFileName 		= Validate::hasValue($this->newFileName) ? $this->newFileName.$this->fileExtension : $newUniqueName;
	}
protected function setAttributes ( ) { $ file = $ this -> file ; $ this -> fileName = $ file [ 'name' ] ; $ this -> mimeType = $ file [ 'type' ] ; $ this -> tempPath = $ file [ 'tmp_name' ] ; $ this -> fileError = $ file [ 'error' ] ; $ this -> fileSize = $ file [ 'size' ] ; $ pathParts = pathinfo ( $ this -> fileName ) ; $ this -> fileExtension = isset ( $ pathParts [ 'extension' ] ) ? "." . strtolower ( $ pathParts [ 'extension' ] ) : "" ; $ newUniqueName = uniqid ( "" , TRUE ) . $ this -> fileExtension ; $ this -> newFileName = Validate :: hasValue ( $ this -> newFileName ) ? $ this -> newFileName . $ this -> fileExtension : $ newUniqueName ; }
Sets file attributes to class properties for evaluation
Sets file attributes to class properties for evaluation