Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【bug】s3自定义域名后无法返回正确的url path #521

Closed
cnzhwei opened this issue Jul 10, 2024 · 3 comments
Closed

【bug】s3自定义域名后无法返回正确的url path #521

cnzhwei opened this issue Jul 10, 2024 · 3 comments

Comments

@cnzhwei
Copy link

cnzhwei commented Jul 10, 2024

发现一个bug,我在S3的存储方式中,设置了自定义域名
image
但是当我在siyuan中上传图片后,发现只有域名,没有图片的path(在s3仓库中看到图片已经上传了),导致无法正常观看图片。
正常应该是返回 https://[domain]/filename.jpg 这样的url,而不是仅返回https://[domain] 这样。
image

不知道是设置有问题,还是插件有bug

@cnzhwei
Copy link
Author

cnzhwei commented Jul 10, 2024

使用的是CloudFlare R2,支持S3 api,上传是成功的,但是就是这个url path的问题,困惑我很久。

@gradypark86
Copy link

自定义域名后要接 /{uploadPath}

@childeyouyu
Copy link

自定义域名后要接 /{uploadPath}

有帮助,谢谢大佬,我先还试了一下把我的上传路径{year}/{month}/{md5}.{extName}放到了后面,结果发现不对。

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants