jellybool / flysystem-upyun Goto Github PK
View Code? Open in Web Editor NEWLaravel 又拍云文件存储,上传,删除。
Home Page: https://www.codecasts.com/
License: MIT License
Laravel 又拍云文件存储,上传,删除。
Home Page: https://www.codecasts.com/
License: MIT License
大佬,安装视频不存在了呀,是不是该考虑更新一下文档了
error: Your requirements could not be resolved to an installable set of packages
我用的是yaf
262行 $config->useSsl = config('filesystems.disks.upyun.protocol') === 'https' ? true : false;
这里方法config方法找不到。用$this->protocol代替就可以了。
项目中需要使用
使用API方法:$flysystem->write 出现错误:Fatal error: Uncaught Error: Call to a member function delete() on null
报错类型不对
rt
Problem 1
- Root composer.json requires jellybool/flysystem-upyun * -> satisfiable by jellybool/flysystem-upyun[dev-master, 1.0.1, ..., 1.0.5, 9999999-dev].
- jellybool/flysystem-upyun[dev-master, 1.0.1, ..., 1.0.5] require league/flysystem ^1.0 -> found league/flysystem[1.0.0-alpha1, ..., 1.x-dev] but these were not loaded, likely because it conflicts with another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require jellybool/flysystem-upyun:*" to figure out if any version is installable, or "composer require jellybool/flysystem-upyun:^2.1" if you know which you need.
如题 配置都没任何问题 不知道是否存在这个问题 ?
例如:
https://github.com/JellyBool/flysystem-upyun/blob/master/src/UpyunAdapter.php#L71
调用的write
方法根据 upyun 的说明返回的结果:
* @return array|bool 若文件是图片则返回图片基本信息,如:`array('x-upyun-width' => 123, 'x-upyun-height' => 50, 'x-upyun-frames'
* => 1, 'x-upyun-file-type' => 'JPEG')`,否则返回空数组。当使用异步预处理功能时,返回结果为布尔值,成功为 `true`。
上传非图片时返回的是空数组,Storage
的 put
方法会返回 false,但实际上传成功了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.