Comments (11)
使用最新版是否还有问题:#2
from aliyun-oss-ruby-sdk.
包含中文是没问题的,包含 # %
这种字符就有问题
from aliyun-oss-ruby-sdk.
Fix: f7e24de
from aliyun-oss-ruby-sdk.
key.gsub!(/[#%]/, '')
你这样不行吧,你这就想当于改了我指定的文件名啊,我用别的阿里云客户端上传文件名中含有 # %
字符的文件都是没问题的,我猜测你是计算签名的方法出了问题。
from aliyun-oss-ruby-sdk.
阿里云在签名的时候表现很奇怪,aa%25中文.pdf => aa25中文.pdf , aa#中文.pdf => aa中文.pdf
但是这部分内容是没有相关文档的,我无法获知它的处理方式。你说的阿里云客户端是指?
from aliyun-oss-ruby-sdk.
我用的是阿里云OSS Mac 客户端
from aliyun-oss-ruby-sdk.
release v0.1.8
from aliyun-oss-ruby-sdk.
👍
from aliyun-oss-ruby-sdk.
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.
我知道哪里出错了,已解决
from aliyun-oss-ruby-sdk.
我知道哪里出错了,已解决
您好,我也遇到这个问题了,请问该如何解决,感谢指点!
from aliyun-oss-ruby-sdk.
Related Issues (5)
- 中文文件名操作问题 HOT 7
- 需要 internal 参数,以便上传删除等 Update 动作能走阿里云局域网 HOT 17
- SSL option Support HOT 3
- 支持传一个文件夹吗?把一个文件夹上传到指定的路径 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 aliyun-oss-ruby-sdk.