library/Garp/Controller/Helper/Upload.php
protected function _store($uploadType, $name, $bytes, $overwrite = false) {
        if (!array_key_exists($uploadType, $this->_fileHandlers)) {
            $this->_fileHandlers[$uploadType] = $uploadType === Garp_File::TYPE_IMAGES ?
                new Garp_Image_File() :
                new Garp_File($uploadType);
        }
        return $this->_fileHandlers[$uploadType]->store($name, $bytes, $overwrite);
    }
protected function _store($uploadType, $name, $bytes, $overwrite = false) {
        if (!array_key_exists($uploadType, $this->_fileHandlers)) {
            $this->_fileHandlers[$uploadType] = $uploadType === Garp_File::TYPE_IMAGES ?
                new Garp_Image_File() :
                new Garp_File($uploadType);
        }
        return $this->_fileHandlers[$uploadType]->store($name, $bytes, $overwrite);
    }
protected function _store ( $ uploadType , $ name , $ bytes , $ overwrite = false ) { if ( ! array_key_exists ( $ uploadType , $ this -> _fileHandlers ) ) { $ this -> _fileHandlers [ $ uploadType ] = $ uploadType === Garp_File :: TYPE_IMAGES ? new Garp_Image_File ( ) : new Garp_File ( $ uploadType ) ; } return $ this -> _fileHandlers [ $ uploadType ] -> store ( $ name , $ bytes , $ overwrite ) ; }
Store the uploaded bytes in a file.

@param string $uploadType The type of file being uploaded, either 'images' or 'documents'
@param string $name The filename
@param string $bytes
@param bool   $overwrite
@return string The new filename
Store the uploaded bytes in a file .