memos icon indicating copy to clipboard operation
memos copied to clipboard

图片、文件、视频能否支持本地存储?

Open kylehz opened this issue 2 years ago • 8 comments

Is your feature request related to a problem?

需求点:

  • 现在图片或文件都放数据库里加载出来有点慢,每次刷新页面都会重新从数据库拉取一次文件,无法像静态资源那样缓存在浏览器
  • 私人照片不想放图床
  • 视频有的比较大,也不方便用网络存储

Describe the solution you'd like

  • 支持本地存储
  • 支持存视频文件,视频播放支持断点续传
  • 本地图片自动生成缩略图,小图使用缩略图,点击再加载原图

Additional context

No response

kylehz avatar Oct 26 '22 12:10 kylehz

技术上不太可能吧?要从浏览器里访问本地文件

Zeng1998 avatar Oct 27 '22 01:10 Zeng1998

我的意思是服务器本地文件系统存储,而不是把文件转成base64放在db里面

kylehz avatar Oct 30 '22 04:10 kylehz

image image

支持,希望可以考虑像这样来存储数据。

别的不说,这样定期做文件增量备份到其他网络存储很方便。 要不然定期给一个越来越大的db文件做备份,实在是多有不便的。

i-iooi-i avatar Jan 15 '23 17:01 i-iooi-i

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


image image

Support, hope it can be considered to store data like this.

Among other things, it is very convenient to regularly do incremental file backups to other network storage. Otherwise, it would be inconvenient to back up an increasingly large db file regularly.

Issues-translate-bot avatar Jan 15 '23 17:01 Issues-translate-bot

🤣看着数据库突然变大,我就知道其他人也有这个焦虑

Seevil avatar Feb 24 '23 16:02 Seevil

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


🤣Looking at the database suddenly getting bigger, I know that other people also have this anxiety

Issues-translate-bot avatar Feb 24 '23 16:02 Issues-translate-bot

强烈支持,有这个功能可以平时再用另一处进行增量同步,不然后续怎么同步另一处地方?按照上行一般的3MB/s,一天才250G能同步,以后用的时间久了,就算没有这么多,文件稍有变化就需要整个重新来同步一遍,就算是一个星期一次也费时间,希望可以早点改进。 感觉有了这个的话,其他的功能才可以算是锦上添花

wk-coder avatar Mar 06 '23 02:03 wk-coder

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


Strong support, with this function, you can usually use another place for incremental synchronization, otherwise how to synchronize another place in the future? According to the general uplink 3MB/s, only 250G can be synchronized in one day. It will take a long time in the future. Even if there are not so many files, a slight change in the file needs to be synchronized again. Even once a week will take time. I hope it can be done Improve early. I feel that with this, other functions can be regarded as icing on the cake

Issues-translate-bot avatar Mar 06 '23 02:03 Issues-translate-bot