confirmUpload() public method

Confirms that the file was successfully uploaded.
public confirmUpload ( ) : self
return self
Exemplo n.º 1
0
 /**
  * Sets that the file fas successfully uploaded.
  *
  * @param \Jyxo\Input\Upload $in Uploaded file
  * @return \Jyxo\Input\Upload
  */
 public function filter($in)
 {
     if (!$this->error && !$this->failedEmpty) {
         $in->confirmUpload();
     }
     return $in;
 }