Comments (4)
请问你解决了吗,我现在也遇到这个问题
from flysystem-cos.
编译安装swoole需要加上 --enable-swoole-curl
from flysystem-cos.
Hyperf上传大文件建议:
swoole版本:>= 4.8
修改相关方法:
use League\Flysystem\Config;
use Overtrue\Flysystem\Cos\CosAdapter as OCosAdapter;
class CosAdapter extends OCosAdapter
{
/**
* @param string $path
* @param resource $resource
* @param Config $config
*
* @return array|false
*/
public function writeStream($path, $resource, Config $config)
{
$options = $this->getUploadOptions($config);
return $this->getClient()->upload($this->getBucket(), $path, $resource, $options['params']);
}
}
from flysystem-cos.
fpm 和 cli 模式下均不能复现,其它模式下请自行适配,先关了。
from flysystem-cos.
Related Issues (20)
- 获取预授权URL时过期时间错误 HOT 1
- getUploadOptions 方法语法错误 HOT 9
- v3 版本的 getUrl 方法会进行一次性 rawurlencode HOT 1
- v3 版本的 getUrl 方法会进行一次性 rawurlencode
- 当目录下只有一个文件时报错 HOT 4
- flysystem v2 不再支持插件机制。 HOT 1
- laravel 9.0 默认 Flysystem:3.0 ,建议升级
- fileExists()文件不存在会抛出异常 HOT 1
- getUrl()只有半小时有效 HOT 4
- v3版本的SDK能否升级为2.0 HOT 4
- 大文件如何上传 HOT 3
- 不能在PHP8.1中使用 HOT 3
- 腾讯云里面的 url 并没有 app_id HOT 3
- 上传超过1M的文件 HOT 2
- 2.x版本 在 cos-php-sdk-v5 2.6.2 下报签名错误
- listObjects 方法获取失败 HOT 1
- league/flysystem与Thinkphp8.0里的冲突。安装不了 HOT 2
- 用 $flysystem->write 上传文件后,如何获取上传成功的路径? HOT 4
- visibility 方法有问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flysystem-cos.