public function insertFile($file)
    {
        if ( ! $this->checkedIndexes) {
            $this->ensureIndexes();
        }

        $this->filesCollection->insertOne($file);
    }
public function insertFile($file)
    {
        if ( ! $this->checkedIndexes) {
            $this->ensureIndexes();
        }

        $this->filesCollection->insertOne($file);
    }
public function insertFile ( $ file ) { if ( ! $ this -> checkedIndexes ) { $ this -> ensureIndexes ( ) ; } $ this -> filesCollection -> insertOne ( $ file ) ; }
Inserts a document into the files collection.

The file document should be inserted after all chunks have been inserted.

@param array|object $file File document
Inserts a document into the files collection .