usememos / memos

An open-source, lightweight note-taking solution. The pain-less way to create your meaningful notes. Your Notes, Your Way.
https://usememos.com
MIT License
34.03k stars 2.46k forks source link

When S3 (MinIO) is specified for file storage, images are not displayed. #3786

Closed aqyuki closed 1 month ago

aqyuki commented 3 months ago

Describe the bug

MinIO was set to be used for file storage. In this case, the uploaded file is not displayed correctly, although the file can be uploaded normally.

Steps to reproduce

  1. set the file storage used by memos to MinIO
  2. post a memo with an image file attached
  3. it is not displayed correctly.

The version of Memos you're using.

v0.22.4

Screenshots or additional context

スクリーンショット 2024-08-06 184449 The image below is the image uploaded to local storage, and the image above is the image uploaded to MinIO

MinIO filepath template is assets/{timestamp}_{filename}

cmoy168 commented 3 months ago

我也遇到了同样的问题

Issues-translate-bot commented 3 months ago

Issue is not in English. It has been translated automatically.


I also encountered the same problem

pipuwong commented 2 months ago

我也遇到了同样的问题.

Issues-translate-bot commented 2 months ago

Issue is not in English. It has been translated automatically.


I also encountered the same problem.

luyufan498 commented 2 months ago

same problem...

DHS1001 commented 2 months ago

same issue here...

gouthamve commented 2 months ago

This looks like it's using client side URLs to communicate with the S3 backend. This means if the Minio or Object Storage backend is not available to the browser then the picture doesn't show up.

Can we proxy the files through instead of signed client URLs?

fengdu126 commented 1 month ago

same problem +1