public function complete()
    {
        $this->flushBuffer(true);

        $document = $this->insertFile();

        $this->_isComplete = true;

        return $document;
    }
public function complete()
    {
        $this->flushBuffer(true);

        $document = $this->insertFile();

        $this->_isComplete = true;

        return $document;
    }
public function complete ( ) { $ this -> flushBuffer ( true ) ; $ document = $ this -> insertFile ( ) ; $ this -> _isComplete = true ; return $ document ; }
Completes upload.
@return array saved document.
Completes upload .