src/Bynder/Api/Impl/Upload/FileUploader.php
public function uploadChunkIterator($file, $filePath, $uploadRequestInfo, $numberOfChunks, &$chunkNumber)
    {
        while ($chunk = fread($file, self::CHUNK_SIZE)) {
            $chunkNumber++;
            yield $this->uploadChunkAsync($filePath, $chunk, $uploadRequestInfo, $numberOfChunks, $chunkNumber);
        }
    }
public function uploadChunkIterator($file, $filePath, $uploadRequestInfo, $numberOfChunks, &$chunkNumber)
    {
        while ($chunk = fread($file, self::CHUNK_SIZE)) {
            $chunkNumber++;
            yield $this->uploadChunkAsync($filePath, $chunk, $uploadRequestInfo, $numberOfChunks, $chunkNumber);
        }
    }
public function uploadChunkIterator ( $ file , $ filePath , $ uploadRequestInfo , $ numberOfChunks , & $ chunkNumber ) { while ( $ chunk = fread ( $ file , self :: CHUNK_SIZE ) ) { $ chunkNumber ++ ; yield $ this -> uploadChunkAsync ( $ filePath , $ chunk , $ uploadRequestInfo , $ numberOfChunks , $ chunkNumber ) ; } }
Iterator function used to control how many file upload promises are sent out.

@param $file
@param $filePath
@param $uploadRequestInfo
@param $numberOfChunks
@param $chunkNumber
@return \Generator A promise representing a chunk file upload.
Iterator function used to control how many file upload promises are sent out .