We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae82012 commit 78142bcCopy full SHA for 78142bc
src/GridFS/GridFsUpload.php
@@ -121,6 +121,7 @@ public function insertChunks($toWrite)
121
$readBytes += strlen($addToBuffer);
122
$this->bufferLength += strlen($addToBuffer);
123
if($this->bufferLength == $this->chunkSizeBytes) {
124
+ rewind($this->buffer);
125
$this->insertChunk(fread($this->buffer, $this->chunkSizeBytes));
126
ftruncate($this->buffer,0);
127
$this->bufferLength = 0;
0 commit comments