alist icon indicating copy to clipboard operation
alist copied to clipboard

希望图片可以通过链接直接浏览

Open ChuYanSir opened this issue 1 year ago • 1 comments

Please make sure of the following things

  • [X] I have read the documentation.
  • [X] I'm sure there are no duplicate issues or discussions.
  • [X] I'm sure this feature is not implemented.
  • [X] I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

当文件为图片类型时,如果我们复制了它的文件直链(http://xx/p/assets/img/xxx.png)并打开它会直接进行下载,不会打开浏览,希望可以对这一问题进行改进,大多数时候我们调用它可能只是为了浏览并非是下载。

Suggested solution / 实现思路

image 将Content-Type的值改为对应的图片类型即可解决该问题 例如: image/webp

Additional context / 附件

No response

ChuYanSir avatar Jan 15 '24 08:01 ChuYanSir

Thanks for opening your first issue here! Be sure to follow the issue template!

welcome[bot] avatar Jan 15 '24 08:01 welcome[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 28 '24 11:02 stale[bot]

Hello @, this issue was closed due to inactive more than 52 days. You can reopen or recreate it if you think it should continue. Thank you for your contributions again.

github-actions[bot] avatar Mar 08 '24 00:03 github-actions[bot]