Home > Backend Development > PHP Tutorial > upyun联盟 - upyun php sdk上传文件不完整

upyun联盟 - upyun php sdk上传文件不完整

WBOY
Release: 2016-06-06 20:25:27
Original
1293 people have browsed it

upyun php sdk上传文件不完整有人遇到过吗?今天发现很多时候不完整
如下面我的这张图
http://meitunew.b0.upaiyun.com/2015/1104/20151104021136249.jpg

回复内容:

upyun php sdk上传文件不完整有人遇到过吗?今天发现很多时候不完整
如下面我的这张图
http://meitunew.b0.upaiyun.com/2015/1104/20151104021136249.jpg

你上传图片的时候,可能带做图参数了吧。

<code>$data = file_get_contents(trim($temploadfile));

            
            $rsp = $upyun->writeFile ( "/" . $savepath, $data, True ); // 上传图片,自动创建目录
            @unlink ( $temploadfile );
            echo "======上传成功==$temploadfile=======\n";
</code>
Copy after login

这是上传代码。
不是每张都是哈。是有的是。有的不是?没搞懂了。

upyun联盟 -  upyun  php sdk上传文件不完整

看这个。感觉图片大小都是对的。就是数据有问题。

Related labels:
php
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