Git Product home page Git Product logo

Comments (11)

zlx avatar zlx commented on June 27, 2024

使用最新版是否还有问题:#2

from aliyun-oss-ruby-sdk.

numbcoder avatar numbcoder commented on June 27, 2024

包含中文是没问题的,包含 # % 这种字符就有问题

from aliyun-oss-ruby-sdk.

zlx avatar zlx commented on June 27, 2024

Fix: f7e24de

from aliyun-oss-ruby-sdk.

numbcoder avatar numbcoder commented on June 27, 2024
key.gsub!(/[#%]/, '')

你这样不行吧,你这就想当于改了我指定的文件名啊,我用别的阿里云客户端上传文件名中含有 # % 字符的文件都是没问题的,我猜测你是计算签名的方法出了问题。

from aliyun-oss-ruby-sdk.

zlx avatar zlx commented on June 27, 2024

阿里云在签名的时候表现很奇怪,aa%25中文.pdf => aa25中文.pdf , aa#中文.pdf => aa中文.pdf
但是这部分内容是没有相关文档的,我无法获知它的处理方式。你说的阿里云客户端是指?

from aliyun-oss-ruby-sdk.

numbcoder avatar numbcoder commented on June 27, 2024

我用的是阿里云OSS Mac 客户端

from aliyun-oss-ruby-sdk.

zlx avatar zlx commented on June 27, 2024

release v0.1.8

from aliyun-oss-ruby-sdk.

numbcoder avatar numbcoder commented on June 27, 2024

👍

from aliyun-oss-ruby-sdk.

Lupeipei avatar Lupeipei commented on June 27, 2024

client.bucket_objects.create('image.png', file, { 'Content-Type' => 'image/png' })
上传文件一直报错:
xxxx/aliyun/oss/authorization.rb:107:in `digest': no implicit conversion of nil into String (TypeError)
一直没找到原因,新建文件目录也会报一样的错:
client.bucket_objects.create("images/", "")
版本ruby 2.3.1p112
求解

from aliyun-oss-ruby-sdk.

Lupeipei avatar Lupeipei commented on June 27, 2024

我知道哪里出错了,已解决

from aliyun-oss-ruby-sdk.

windy2006 avatar windy2006 commented on June 27, 2024

我知道哪里出错了,已解决

您好,我也遇到这个问题了,请问该如何解决,感谢指点!

from aliyun-oss-ruby-sdk.

Related Issues (5)

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.