Qiniu cloud storage-upload images using the sdk of qiniu. My php version 5.5 has the following error:

Source: Internet
Author: User
Using the sdk to upload pictures my php version 5.5 has the following error: Message: curl_setopt_array (): Theusageofthe@filenameAPIforfileuploadingisdeprecated.PleaseusetheCURLFileclassinsteadFilename: qi... the following error occurs when I upload images using the sdk of qiniu in 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

Why?

Reply content:

The following error occurs when I upload images using the sdk of qiniu in 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

Why?

I went to the official website and found the latest sdk. I changed the old sdk version and changed the reference method.

Can I try to use the absolute path of the file to upload files? Can I upload resources normally.

Add@Blocking Error
This is an SDK issue.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.