Home > Backend Development > PHP Tutorial > 七牛云存储 - 用七牛的sdk 上传图片 我php版本5.5的出现下面的错误

七牛云存储 - 用七牛的sdk 上传图片 我php版本5.5的出现下面的错误

WBOY
Release: 2016-06-06 20:32:47
Original
1390 people have browsed it

用七牛的sdk 上传图片 我php版本5.5的出现下面的错误:

Message: curl_setopt_array(): The usage of the @filename API for file uploading is deprecated. Please use the CURLFile class instead

Filename: qiniu/http.php

何解?

回复内容:

用七牛的sdk 上传图片 我php版本5.5的出现下面的错误:

Message: curl_setopt_array(): The usage of the @filename API for file uploading is deprecated. Please use the CURLFile class instead

Filename: qiniu/http.php

何解?

我去官网找到了最新版的sdk 换了这个老版本的sdk 改了下引用方式 就好了

是否可以尝试下用文件的绝对路径去上传文件是否可以正常上传资源。

找到报错行 函数前面加@屏蔽错误吧
这个是SDK的问题

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template