Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

检查上传文件的内容是否合法导致不能上传长度为0的文件 #43

Closed
yanggs07 opened this issue Apr 26, 2017 · 1 comment

Comments

@yanggs07
Copy link

@ aliyuncs/oss-sdk-php/src/OSS/Core/OssUtil.php

    /**
     * 检查上传文件的内容是否合法
     *
     * @param $content string
     * @throws OssException
     */
    public static function validateContent($content)
    {
        if (empty($content)) {
            throw new OssException("http body content is invalid");
        }
    }

这就导致如果有明确需求需要上传一个空文件会导致报错,希望能去掉这个判断。
谢谢。

@baiyubin
Copy link

您好,非常感谢您的反馈,该问题的修复代码已经合入了master,12月初会发布新版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants