We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
把$data['file'] = new \CURLFile($filePath); 修改成: if (class_exists('\CURLFile')) { $data['file'] = new \CURLFile($filePath); //$field = array('fieldname' => new \CURLFile(realpath($filepath))); } else { $data['file'] = '@' .$filePath; //$field = array('fieldname' => '@' . realpath($filepath)); } 这样5.4就可以用了,我用的是阿里云,没有5.5的,修改了一下
The text was updated successfully, but these errors were encountered:
已经修正,当时做的项目是5.5以上的,就没做5.4版本的
Sorry, something went wrong.
恩,好的 我是在环境上用到5.4,不能切换环境就修改了程序,顺道和你说一下
原始邮件 发件人:crazyfdnotifications@github.com 收件人:crazyfd/yii2-qiniuyii2-qiniu@noreply.github.com 抄送:rickeryulhyfe1987@163.com 发送时间:2015年1月27日(周二) 09:12 主题:Re: [yii2-qiniu] 修改一下兼容5.4 (#1)
已经修正,当时做的项目是5.5以上的,就没做5.4版本的 — Reply to this email directly or view it on GitHub.
No branches or pull requests
把$data['file'] = new \CURLFile($filePath);
修改成:
if (class_exists('\CURLFile')) {
$data['file'] = new \CURLFile($filePath);
//$field = array('fieldname' => new \CURLFile(realpath($filepath)));
} else {
$data['file'] = '@' .$filePath;
//$field = array('fieldname' => '@' . realpath($filepath));
}
这样5.4就可以用了,我用的是阿里云,没有5.5的,修改了一下
The text was updated successfully, but these errors were encountered: