usememos / memos

An open-source, lightweight note-taking solution. The pain-less way to create your meaningful notes.
https://usememos.com
MIT License
30.54k stars 2.29k forks source link

七牛云S3存储上传文件报错 #3385

Closed Tonmyn closed 4 months ago

Tonmyn commented 4 months ago

Describe the bug

1、无法在 qiniu S3 oss中上传文件 按文档步骤设置了S3存储信息 参考了 #2190 中的解决办法,在endpoint前面增加了'http://'也无法正常上传附件

Steps to reproduce

1、首先设置S3存储

image

2、上传附件

image

The version of Memos you're using

0.22.0

Screenshots or additional context

failed to save resource blob: Failed to upload via s3 client: operation error S3: PutObject, https response error StatusCode: 403, RequestID: 6qIAAADcjazYns8X, HostID: , api error RequestTimeTooSkewed: The difference between the request time and the server's time is too large

image

image

Issues-translate-bot commented 4 months ago

Issue is not in English. It has been translated automatically.


Title: Qiniu Cloud S3 storage upload file error

Tonmyn commented 4 months ago

感谢 @michaelien 解决了我的问题

Issues-translate-bot commented 4 months ago

Issue is not in English. It has been translated automatically.


Thanks @michaelien for solving my problem

Tonmyn commented 4 months ago

这里记录一下 七牛云OSS 在0.22版本中如何添加

  1. 填写你的 AK和SK;
  2. Endpoint 填写七牛云提供的“Endpoint(区域节点)”,不要填成了“空间域名”;

前面一定要加http://或者https://

image

  1. Region随便填,根据文档填个auto就行了;
  2. Bucket填你在七牛云建的空间的名字就行了;

image

  1. 最后点保存;

我遇到的错误是memos和S3服务器的时间不同步造成的,把memos的时间同步后就顺利设置完成了

Issues-translate-bot commented 4 months ago

Issue is not in English. It has been translated automatically.


Here is a record of how to add Qiniu Cloud OSS in version 0.22

  1. Fill in your AK and SK;

  2. Endpoint fill in the "Endpoint (regional node)" provided by Qiniu Cloud. Do not fill in the "space domain name"; image

  3. Fill in the Region casually, just fill in auto according to the document;

  4. Just fill in the name of the space you built in Qiniu Cloud in the Bucket;

image

  1. Finally click Save;