src/Qiniu/QiniuAdapter.php
protected function getResumeUpload($key, $inputStream, Config $config, $params = null)
    {
        if (!$this->resumeUploader) {
            if (!$config->has('file_path')) {
                throw new InvalidArgumentException("请配置 file_path 选项，此选项表示需要上传的文件的路径");
            }

            $file_path = $config->get('file_path');

            if ( $file_path ) {
                $file_info = new \SplFileInfo($file_path);

                if ($file_info->isFile() == true) {
                    $this->resumeUploader = new ResumeUploader( $this->token, $key, $inputStream, $file_info->getSize(), $params, FileFunction::getFileMimeType($file_path), (new QiniuConfig()) );
                }
            }

            throw new InvalidArgumentException("{$file_path} 不是一个文件");
        }
        return $this->resumeUploader;
    }
protected function getResumeUpload($key, $inputStream, Config $config, $params = null)
    {
        if (!$this->resumeUploader) {
            if (!$config->has('file_path')) {
                throw new InvalidArgumentException("请配置 file_path 选项，此选项表示需要上传的文件的路径");
            }

            $file_path = $config->get('file_path');

            if ( $file_path ) {
                $file_info = new \SplFileInfo($file_path);

                if ($file_info->isFile() == true) {
                    $this->resumeUploader = new ResumeUploader( $this->token, $key, $inputStream, $file_info->getSize(), $params, FileFunction::getFileMimeType($file_path), (new QiniuConfig()) );
                }
            }

            throw new InvalidArgumentException("{$file_path} 不是一个文件");
        }
        return $this->resumeUploader;
    }
获得二进制流上传对象

@param $key          上传文件名
@param $inputStream  上传二进制流
@param $config       配置信息
@param $params       自定义变量
@return ResumeUploader
@author yangyifan <yangyifanphp@gmail.com>