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

现在上传会自动在根目录加一层目录名为"桶名",能否更新一下返回的链接地址吗? #25

Closed
murazi opened this issue Apr 14, 2023 · 4 comments
Assignees

Comments

@murazi
Copy link

murazi commented Apr 14, 2023

现在自动复制的链接里,缺少新的“桶名”,所以每次都要手动加一遍

希望作者可以修复这个问题,因为我是才用到这个插件,我一直以为自己配置的不对,检查了好久才发现- -

假设桶名为:123

现在的链接地址
https://haha.abc.com/abbbbbbb.webp

正确的地址:
https://haha.abc.com/123/abbbbbbb.webp

如果在配置路径里前面手动添加桶名
实际上它又会变为
https://haha.abc.com/123/123/abbbbbbb.webp

@wayjam
Copy link
Owner

wayjam commented Apr 14, 2023

是最新的 v1.3.0 吗? pathStyleAccess 的开关是开还是关?完整配置贴一下

@wayjam wayjam self-assigned this Apr 14, 2023
@murazi
Copy link
Author

murazi commented Apr 17, 2023

是最新的 v1.3.0 吗? pathStyleAccess 的开关是开还是关?完整配置贴一下

抱歉,我忘了说,我使用的是cloudflare r2的s3服务

没错插件是1.3.0
我试过,pathStyleAccess的开关并无影响

我现在的解决办法是,在自定义链接的后缀上,再加一次桶名,这样可以解决问题
如果amazon的s3无此问题的话,建议在md里可以向r2服务的用户单独声明一下这样解决的方法

r2就是会在自定义域名后,自动再加一层目录“bulkName”

@wayjam
Copy link
Owner

wayjam commented Apr 26, 2023

不同 S3 Provider 的配置方法:#28

@wayjam wayjam closed this as completed Apr 26, 2023
@wayjam
Copy link
Owner

wayjam commented May 5, 2023

sO,这个问题并没有解决,总是在自定义域名后自动加一次桶名,而且,每上传一张照片,自动加一次

有参照这个配置方法吗 #28

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

2 participants