Looking for feedback on my new cloud storage plugin before I tidy up and publish! 🎉 #249
Replies: 5 comments 8 replies
-
Just had time for a quick glance, but looks at least like a very clean example for the (first?) community plugin, don't know much about the S3 layer. On my watch list to study better later. |
Beta Was this translation helpful? Give feedback.
-
Update: found a better solution I think. I'm allowing the user more freedom in how they create virtual fields and specify the admin thumbnail https://github.com/richardvanbergen/payload-plugin-cloud-storage/tree/feat/append-arbitary-fields |
Beta Was this translation helpful? Give feedback.
-
Hey @richardvanbergen this is amazing! I will be doing my best to review today. Working on our own Form Builder plugin at the moment but this is super exciting and we will be using this in our own projects as well! One note, I just deployed a new patch that removes the requirement that plugins should return a fully sanitized config. This is handy mainly in cases where you want to inject new collections without having to go through and sanitize them fully yourself. Now your plugins can write configs just as the end user can, and the whole plugin-enabled config will get re-sanitized after plugins are executed. I don't think this should interrupt your typings, but I'm not sure. You may need to convert your plugin's types to I wrote up some notes in the changelog that reflect this as well. |
Beta Was this translation helpful? Give feedback.
-
Got the npm publish working, now testing in my project to make sure it actually works. |
Beta Was this translation helpful? Give feedback.
-
Hey @richardvanbergen — just had a chance to look through your code in-depth. It looks great! It's super inspiring to see you digging in to this plugin infrastructure so quickly and apparently effortlessly. I really like the adapter pattern, specifically. The hooks are also nice and clean. Here are a few of my other thoughts:
How come this is necessary? As the user is free to write their own config in advance of installing this plugin, wouldn't they be free to just add fields / add their
If the Just trying to simplify the amount of work that the end user needs to do to get this plugin working. This will all be doubly complicated once we support I think that's really all that jumped out at me! Again, that adapter pattern is super nice and I am really looking forward to seeing this development continue. Want our help anywhere? |
Beta Was this translation helpful? Give feedback.
-
Hello all,
I've made a little plugin, currently it only supports S3 compatible APIs (like digital ocean) but I thought it'd be nice to support some other cloud service providers so I found a way of making it more generic.
There are a lot of improvements I'd like to make. For one I've only tested it in it's original S3-only form but I'd like to get a couple of comments before I go adding tests and real documentation:
I also need to deal with thumbnail images. Currently it only fetches the full size image which is a bit clumsy.
https://github.com/richardvanbergen/payload-plugin-cloud-storage
Beta Was this translation helpful? Give feedback.
All reactions