Code Monkey home page Code Monkey logo

Comments (4)

johnlui avatar johnlui commented on May 18, 2024

就是这样设置的,没有错

from aliyunoss.

Wysten-Hgg avatar Wysten-Hgg commented on May 18, 2024

我这样设置之后,并没有生效呢。打印了一下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.

johnlui avatar johnlui commented on May 18, 2024

putObject 是阿里云的方法,并没有所谓的第四个参数,这个函数只有一个参数。有第四个参数的是我定义的 publicUpload 方法

from aliyunoss.

Wysten-Hgg avatar Wysten-Hgg commented on May 18, 2024

我知道了 谢谢

from aliyunoss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.