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

类似这样的图片名【book (1).jpg】,上传后无法使用 #244

Closed
saxingz opened this issue Jul 15, 2019 · 11 comments

Comments

@saxingz
Copy link

commented Jul 15, 2019

猜测是由于括号,或者是空格导致的

html里看代码是这样的:
style="background-image: url(/upload/2019/7/book (1)-73b8249fbff54f7f916be01e007a9880.jpg)

这样就显示不出来了。

这种文件名是由于复制时自动带上去的。 用户是可以自己把关的。

作者看一下,要是没必要修改, 直接close吧。

@ruibaby

This comment has been minimized.

Copy link
Member

commented Jul 15, 2019

你用的 Halo 是哪个版本?

@saxingz

This comment has been minimized.

Copy link
Author

commented Jul 15, 2019

你用的 Halo 是哪个版本?

最新的版本,昨天从源码上拉下来跑的。

@ruibaby

This comment has been minimized.

Copy link
Member

commented Jul 15, 2019

@saxingz 在附件详情复制图片地址的话会编码的,你尝试一下。

@saxingz

This comment has been minimized.

Copy link
Author

commented Jul 15, 2019

@saxingz 在附件详情复制图片地址的话会编码的,你尝试一下。

手动复制是会编码,但是在发布文章时,直接从附件库里选择图片,应该是没有编码的。

@ruibaby

This comment has been minimized.

Copy link
Member

commented Jul 15, 2019

@saxingz 你说的是选择文章缩略图吧。

@saxingz

This comment has been minimized.

Copy link
Author

commented Jul 15, 2019

@saxingz 你说的是选择文章缩略图吧。

是的。你回复好快。~~

@ruibaby

This comment has been minimized.

Copy link
Member

commented Jul 15, 2019

@saxingz 哦,这里确实忘了编码url,下个版本加上去。ps:tg回复

@a1105013796

This comment has been minimized.

Copy link

commented Jul 18, 2019

同样的问题,直接复制上去的图片发布以后就无法显示

@ruibaby

This comment has been minimized.

Copy link
Member

commented Jul 18, 2019

@a1105013796

This comment has been minimized.

Copy link

commented Jul 18, 2019

@ruibaby

This comment has been minimized.

Copy link
Member

commented Jul 19, 2019

已修复。

@ruibaby ruibaby closed this Jul 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.