Skip to content

ドライブのファイルのURLをフォルダ分けして管理する #5695

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

Open
u1-liquid opened this issue Jan 8, 2020 · 0 comments
Open
Labels
[Feat] Drive Drive related issue ✨Feature This adds/improves/enhances a feature packages/backend Server side specific issue/PR

Comments

@u1-liquid
Copy link
Contributor

u1-liquid commented Jan 8, 2020

Summary

ドライブのファイルを用途・出典でフォルダ分けして管理する

ex)

  • カスタム絵文字
    /emojis/misskey.io/79671645-b078-41e8-936e-dd8113cda1ed.png
  • @[email protected] のアバター
    /avatars/misskey.io/79671645-b078-41e8-936e-dd8113cda1ed.jpg
  • @[email protected] のバナー
    /banners/misskey.io/79671645-b078-41e8-936e-dd8113cda1ed.jpg
  • 画像
    /images/misskey.io/79671645-b078-41e8-936e-dd8113cda1ed.jpg
  • 映像
    /videos/misskey.io/79671645-b078-41e8-936e-dd8113cda1ed.mov
  • 音楽
    /sounds/misskey.io/79671645-b078-41e8-936e-dd8113cda1ed.mp3
  • メディアファイル以外
    /files/misskey.io/79671645-b078-41e8-936e-dd8113cda1ed.exe
  • サムネイル
    /thumbnails/images/misskey.io/79671645-b078-41e8-936e-dd8113cda1ed.jpg

pros

  • ドメインブロックなどで特定サーバーのファイルを一括削除するときちょっと便利になるかも
  • バックアップ・復元の時の元のDBのDriveFileの情報がなくてもインスタンス単位で作業できる
  • (Object Storageを使わない場合)directory listing時の負荷が減る
  • 他にも色々あると思う

cons

  • URLが長くなる
@u1-liquid u1-liquid added the ✨Feature This adds/improves/enhances a feature label Jan 8, 2020
@syuilo syuilo added the packages/backend Server side specific issue/PR label Jan 9, 2020
@tamaina tamaina changed the title ドライブのファイルをフォルダ分けして管理する ドライブのファイルのURLをフォルダ分けして管理する Apr 6, 2020
@samunohito samunohito added the [Feat] Drive Drive related issue label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feat] Drive Drive related issue ✨Feature This adds/improves/enhances a feature packages/backend Server side specific issue/PR
Projects
Status: No status
Development

No branches or pull requests

3 participants