memos
memos copied to clipboard
storage minio not work
Describe the bug
我创建了一个minio的storage,如下
几个问题:
1.我的minio api地址是
https://minio-api.example.com
,但是我创建时候Endpoint不得不填成https://example.com
,然后在bucket这边填minio-api
,这样最终传图片的时候才会拼接成正确的api地址
2.图片是上传成功了,但是无法访问,如图:
原因是图片是错的,从新标签打开图片得到的链接是:
https://demo.usememos.com/aa/memos/2023/03/download_icon.png.image/png
Steps to reproduce
1.配置minio 2.上传图片
Screenshots or additional context
No response
- It's expected.
- Check if you have selected MinIO as your storage service.
- It's expected.
- Check if you have selected MinIO as your storage service.
我当然是选了minio,图片上传是成功的,但是无法显示,另外就是在memos中minio配置不方便
无法显示是因为你配置的「URL Prefix」,如果需要使用 CDN 这里应该填写完整的 https://xxx.x.com
Issue is not in English. It has been translated automatically.
It cannot be displayed because of the "URL Prefix" you configured. If you need to use CDN, you should fill in the complete https://xxx.x.com
无法显示是因为你配置的「URL Prefix」,如果需要使用 CDN 这里应该填写完整的 https://xxx.x.com
我配置了URL Prefix为https://minio-api.example.com
,得到的图片地址是 https://minio-api.example.com/memos/2023/03/download_icon.png.image/png
依然无法访问图片
Issue is not in English. It has been translated automatically.
It cannot be displayed because of the "URL Prefix" you configured. If you need to use CDN, you should fill in the complete https://xxx.x.com
I configured the URL prefix as https://minio-api.example.com
, and the URL of the image obtained is https://minio-api.example.com/memos/2023/03/download_icon.png.image/ png
Still can't access the image
我配置了URL Prefix为
https://minio-api.example.com
,得到的图片地址是https://minio-api.example.com/memos/2023/03/download_icon.png.image/png
依然无法访问图片
试试把 path 后面的 .{filetype} 去掉
Issue is not in English. It has been translated automatically.
I configured the URL Prefix as
https://minio-api.example.com
, and the URL of the image obtained ishttps://minio-api.example.com/memos/2023/03/download_icon.png.image /png
still can't access the image
Try to remove the .filetype behind the path
试试把 path 后面的 .{filetype} 去掉
地址是对了,https://minio-api.example.com/memos/2023/03/download_icon.png
但是AccessDenied了,访问图片没有带上秘钥吗
<Code>AccessDenied</Code>
<Message>Access Denied.</Message>
<Key>2023/03/download_icon.png</Key>
<BucketName>memos</BucketName>
<Resource>/memos/2023/03/download_icon.png</Resource>
<RequestId>174C263F022BF893</RequestId>
<HostId>d669934d-6605-4c3f-ae5f-320acfbea834</HostId>
Issue is not in English. It has been translated automatically.
Try to remove the .{filetype} after the path
The address is right, https://minio-api.example.com/memos/2023/03/download_icon.png
But AccessDenied, did you not bring the key to access the picture?
<Code>AccessDenied</Code>
<Message>Access Denied.</Message>
<Key>2023/03/download_icon.png</Key>
<BucketName>memos</BucketName>
<Resource>/memos/2023/03/download_icon.png</Resource>
<RequestId>174C263F022BF893</RequestId>
<HostId>d669934d-6605-4c3f-ae5f-320acfbea834</HostId>
我遇到了一样的问题,虽然我解决了。但是 {filename}
变量获取的是带了扩展名的文件名称(当然也包含那个点),而且 {filetype}
竟然获取的不是文件扩展名,而是像是 image/png
这样的文件类型,这些是我真正希望修复的。当然,如果能早日解决附件存储在数据库外部的问题,应该也不会考虑自己搭建 minio 了吧
Issue is not in English. It has been translated automatically.
I had the same problem, though I solved it. But the {filename}
variable gets the file name with the extension (of course including the dot), and {filetype}
actually gets not the file extension, but something like image/png
file types, these are the ones I'd really like to fix. Of course, if the problem of storing attachments outside the database can be solved as soon as possible, you should not consider building minio by yourself.
我想咨询下,我的当前存储没法选择minio,选择了会自动跳回到Database,这是为什么?
EndPoint是https://share.域名:端口
,我哪里填的不对吗,我相同配置的另外一个Bucket,在SiYuan笔记里就能正常用,但是在Memos里不行
Issue is not in English. It has been translated automatically.
I would like to ask, my current storage can not choose minio, if I choose, it will automatically jump back to Database, why? EndPoint is https://share.domain name:port, where did I fill it wrong? Another Bucket with the same configuration can be used normally in SiYuan notes, but not in Memos