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

無条件にファイルをシェアする方法 #4

Closed
dotnsf opened this issue Jan 12, 2022 · 1 comment
Closed

無条件にファイルをシェアする方法 #4

dotnsf opened this issue Jan 12, 2022 · 1 comment

Comments

@dotnsf
Copy link
Owner

dotnsf commented Jan 12, 2022

自分がアップロードしたファイルを自分以外の人にもシェアしたい場合の実現・実装方法をどうするべきか?

/a.pdf ファイルをアップロードした本人は GET /a.pdf で取り出せるが、他の人からはこのリクエストパスでは取り出せない。このファイルをシェアしたい場合、どういう仕組みにして、どういうリクエストパスで取り出せるようにするべきか?

新たな records.id (Primary Key) を作って、その ID で指定できるようにするべきか?

@dotnsf
Copy link
Owner Author

dotnsf commented Jan 13, 2022

現在の records.id を records.file_id に名称変更して動くように調整し、その後に recoreds.id (PK) を追加する。

ファイル履歴は records.file_id で、シェアは records.id をキーにして行うことができるようになる。

dotnsf added a commit that referenced this issue Jan 14, 2022
@dotnsf dotnsf closed this as completed Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant