You are here

protected function MongoFile::getGridFsFileQuery in One Click Upload 7.2

Return value

array

2 calls to MongoFile::getGridFsFileQuery()
MongoFile::getGridFsFile in flowphp/src/Flow/Mongo/MongoFile.php
return array
MongoFile::saveToGridFs in flowphp/src/Flow/Mongo/MongoFile.php
Merge all chunks to single file

File

flowphp/src/Flow/Mongo/MongoFile.php, line 171

Class

MongoFile
Notes:

Namespace

Flow\Mongo

Code

protected function getGridFsFileQuery() {
  return [
    'flowIdentifier' => $this->request
      ->getIdentifier(),
    'flowStatus' => 'uploading',
    'filename' => $this->request
      ->getFileName(),
    'chunkSize' => intval($this->request
      ->getDefaultChunkSize()),
    'length' => intval($this->request
      ->getTotalSize()),
  ];
}