Home > Backend Development > PHP Tutorial > 阿里云OSS PHP SDK 使用出错

阿里云OSS PHP SDK 使用出错

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:41:14
Original
1689 people have browsed it

为了减少本地服务器压力,刚开始使用HTML表单直接上传,非常不稳定,有时候10M不到的文件都无法上传,有时候100多M的也能传上去,而且也不能使用ajax或者uploadify之类的组件进行上传,所以没办法只好使用标准的putObject方式,但是也是问题多多,小文件可以传上去,传大一点点文件就会报错:[curl] 56: Recv failure: Connection was reset,难道真的只能使用客户端工具来传么?

回复内容:

为了减少本地服务器压力,刚开始使用HTML表单直接上传,非常不稳定,有时候10M不到的文件都无法上传,有时候100多M的也能传上去,而且也不能使用ajax或者uploadify之类的组件进行上传,所以没办法只好使用标准的putObject方式,但是也是问题多多,小文件可以传上去,传大一点点文件就会报错:[curl] 56: Recv failure: Connection was reset,难道真的只能使用客户端工具来传么?

这个跟PHP没有关系。可以参考plupload + php的方式,解决http://bbs.aliyun.com/read/262307.html?spm=5176.bbsl211.0.0.8gmdkz 这个文档有说明。很简单的

Related labels:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template