public function file(UploadedFile $file)
	{
		$this->file = $file;
		$this->filename = $file->getClientOriginalName();
		$this->sanitizeFilename();

		return $this;
	}
public function file(UploadedFile $file)
	{
		$this->file = $file;
		$this->filename = $file->getClientOriginalName();
		$this->sanitizeFilename();

		return $this;
	}
public function file ( UploadedFile $ file ) { $ this -> file = $ file ; $ this -> filename = $ file -> getClientOriginalName ( ) ; $ this -> sanitizeFilename ( ) ; return $ this ; }
Sets the uploaded file to be validated and moved
@param UploadedFile $file
@return mixed
Sets the uploaded file to be validated and moved