carbon-fields
carbon-fields copied to clipboard
[File Field] Attach uploads to the current post
For post metaboxes, I think it would be ideal to attach the uploads via the MediaLibrary component to the current post. wp.media
already supports such a behavior.
You just need to add the uploadedTo
entry here: https://github.com/htmlburger/carbon-fields/blob/e6a82dfdb4e7ece37c2c73f1d130cd1df29d877f/packages/core/components/media-library/index.js#L76
I hope this makes sense to others.