protected function MongoFile::getGridFsFile in One Click Upload 7.2
return array
1 call to MongoFile::getGridFsFile()
- MongoFile::saveToGridFs in flowphp/
src/ Flow/ Mongo/ MongoFile.php - Merge all chunks to single file
File
- flowphp/
src/ Flow/ Mongo/ MongoFile.php, line 40
Class
- MongoFile
- Notes:
Namespace
Flow\MongoCode
protected function getGridFsFile() {
if (!$this->uploadGridFsFile) {
$gridFsFileQuery = $this
->getGridFsFileQuery();
$changed = $gridFsFileQuery;
$changed['flowUpdated'] = new \MongoDate();
$this->uploadGridFsFile = $this->config
->getGridFs()
->findAndModify($gridFsFileQuery, $changed, null, [
'upsert' => true,
'new' => true,
]);
}
return $this->uploadGridFsFile;
}