Comments (4)
就是这样设置的,没有错
from aliyunoss.
我这样设置之后,并没有生效呢。打印了一下putObject
的返回结果,也没有这个参数。
["oss-requestheaders"]=>
array(7) {
["Accept-Encoding"]=>
string(0) ""
["Content-Length"]=>
string(3) "199"
["Content-Md5"]=>
string(24) "G/YST0KS0u618KVdRSptgA=="
["Content-Type"]=>
string(22) "application/javascript"
["Date"]=>
string(29) "Tue, 07 Jan 2020 03:35:20 GMT"
["Host"]=>
string(33) "aaaa.aliyuncs.com"
["Authorization"]=>
string(49) "OSS LTAI0bJIAhhINTVj:nJFaD3ksL0uFIWc2o53MtWtpm6o="
}
去OSS查看刚上传的文件HTTP头,也没有这个Cache-Control。。。
from aliyunoss.
putObject 是阿里云的方法,并没有所谓的第四个参数,这个函数只有一个参数。有第四个参数的是我定义的 publicUpload 方法
from aliyunoss.
我知道了 谢谢
from aliyunoss.
Related Issues (20)
- 建议$oss = new OSS();改下成new self().这样就可以随便更改类名。 HOT 2
- 建议新增getUrl方法 HOT 1
- 上传后如何查看返回的状态或者说返回的图片路径啊? HOT 1
- 可以获取到当前上传进度吗?一个前端的疑惑 HOT 2
- 缺少了追加上传的功能 HOT 1
- Laravel 5.5 兼容吗? HOT 2
- 请问如何在bucket下面新建文件夹 HOT 1
- 使用URL签名授权访问 HOT 1
- 老师,您这个支持lumen 5.5.* 吗? HOT 5
- getPrivateObjectURLWithExpireTime获取资源无效
- 大文件的断点续传应该如何处理呢 HOT 2
- 请问上传后如何查看返回的状态? HOT 2
- 删除的时候 Class Error: aliyun\oss\parsers\sxparser\sxdeleteobjectparser.isn't exists!
- 如何指定obj的acl? HOT 1
- 如何使用https连接,您返回的都是http的 HOT 2
- Class 'JohnLui\AliyunOSS\AliyunOSS' not found HOT 1
- laravel 7 不适配 HOT 3
- oss dispatch错误 HOT 1
- 请问如何使用图片格式转换?
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 aliyunoss.