Preferred approach to store file reference in related entities #4680
Unanswered
mdmontesinos
asked this question in
Q&A
Replies: 1 comment
-
@mdmontesinos the recommended approach is to store the File ID as it will not change even if the file is renamed or moved to another folder. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was wondering what's the preferred approach to save a file reference in an related entity. For example, a news article that has a main image selected via the File Manager.
Should I store the file id or the url?
Beta Was this translation helpful? Give feedback.
All reactions