Improve adding media upload to a block #22273
Labels
[Feature] Media
Anything that impacts the experience of managing media
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Enhancement
A suggestion for improvement.
Is your feature request related to a problem? Please describe.
When creating a new block that requires a media upload, there is a fair amount of complexity to get it right. You can see this in the core "Media & Text" block which ends up creating its own
MediaContainer
, to include theMediaPlaceholder
and lots of additional functions to account for image vs video, resizing, blobUrl replacement and other aspects that go into an upload.Additionally, even with the additional code in that block, an upload in-progress indicator is still not included. Digging through the Image block, shows the indicator is handled using a select data and mediaUpload function, though a fair amount of additional complexity that everyone who needs to create an upload will need to duplicate.
Describe the solution you'd like
Ideally, we create a single component for upload that is easy to use and requires a minimal of customization to get all the pieces to upload. This includes indicator, drag-drop, blobUrl replacement, etc...
The text was updated successfully, but these errors were encountered: