File adapters in v6 #6344
Replies: 4 comments 9 replies
-
you can use this for s3 - https://github.com/keystonejs-contrib/k6-contrib/tree/main/packages/fields-s3 |
Beta Was this translation helpful? Give feedback.
-
Because I thought I'd have an explore, I've created a fork with an implementation of file adapters, and I've refactored it to use that for files (but not images) - https://github.com/aaronpowell/keystone/compare/devcontainer...aaronpowell:file-adapters?expand=1 Due to where the Happy to collab on this if it seems useful (I might do images tomorrow if I get time) |
Beta Was this translation helpful? Give feedback.
-
Thanks @aaronpowell & @gautamsi Changing our approach to files and images is a big design effort that we acknowledge needs to happen. However we cant fold this into a |
Beta Was this translation helpful? Give feedback.
-
We spoke to this topic in the recent Q&A event: |
Beta Was this translation helpful? Give feedback.
-
Right now, the only way to use file fields is to have them uploaded and stored on disk (unless you poke though the code enough and find the references to some "keystone-cloud" thing that I guess isn't announced yet 😝).
This makes it rather inflexible from a hosting standpoint, as it assumed that the disk is writable and persistent, neither is something you can asset in a cloud environment.
Is a reintroduction of the
FileAdapter
pattern from v5 on the cards for GA of v6?Beta Was this translation helpful? Give feedback.
All reactions