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

修改一下兼容5.4 #1

Closed
ruikc opened this issue Jan 27, 2015 · 2 comments
Closed

修改一下兼容5.4 #1

ruikc opened this issue Jan 27, 2015 · 2 comments

Comments

@ruikc
Copy link

ruikc commented Jan 27, 2015

把$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的,修改了一下

@crazyfd
Copy link
Owner

crazyfd commented Jan 27, 2015

已经修正,当时做的项目是5.5以上的,就没做5.4版本的

@ruikc
Copy link
Author

ruikc commented Jan 27, 2015

恩,好的
我是在环境上用到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.

@crazyfd crazyfd closed this as completed Jan 27, 2015
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

2 participants