Automatic Folder Creation when ID is missing #22509
NilsBaumgartner1994
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Automatically create folders if the folder id is missing, in order to support better organization of files.
Basic Example
No response
Motivation
So based on several discussions: #12019 #16795 #4170 #3209 #9481 #8950
The organization of files is not good, especially when you start your software for multiple customers. Therefore i would suggest that since the folder id is defined in the Schema, Directus should atleast automatically create the folder if the ID is not found.
This would improve a more structorized approach in handling files.
Detailed Design
I think a simple hook like before upload files or so should be already satisfying in order to organize files better?
Requirements List
Must Have:
Should Have:
Could Have:
Drawbacks
Well as i know that saving the name of the folder in the schema is not very good, this could be a drawback.
Alternatives
Instead of implementing it into the core functions (but i thinks that this should be a core function) a cookbook of well known hooks or on the marketplace there should be an addon.
Adoption Strategy
Unresolved Questions
No response
Beta Was this translation helpful? Give feedback.
All reactions