Hi
When I use the file image/upload field I am getting two different types rendering, Upload => Can only upload a new image, resulting in duplicate images being uploaded. Choose photo => Opens the media manager where I can select an existing image or upload a new image.
Examples of this can be found at Builder.io: Drag and drop page builder and CMS, but are not limited to this page.
Choose photo is showing in my custom component Banner which is registered in the following way:
Builder.registerComponent(Banner, {
name: 'Banner',
inputs: [
...
{
name: 'image',
type: 'object',
friendlyName: 'Background',
subFields: [
{
name: 'url',
type: 'file',
helperText: 'Dimension: 1280 x 720 px Size: < 500 KB',
allowedFileTypes: [
'jpg',
],
},
{
name: 'alt',
type: 'string',
},
],
},
...
],
});
Upload is showing in my page model for my Open Graph image, ideally this needs to be Choose photo not upload.
Cheers
Peter