If you restrict the allowedFileTypes to only [‘svg’], the visual editor only allows you to “upload” and not “choose photo” → “Load from URL”. This behavior recently changed as it used to to follow the “choose photo” route.
{
name: "iconURL",
type: "file",
allowedFileTypes: ['svg'],
helperText: "Currently only SVG files are accepted",
},
If you edit this to also allow JPG, it will now allow you to choose to upload by url. Which allows you to again upload SVG by url.
{
name: "iconURL",
type: "file",
allowedFileTypes: ['jpg', 'svg'],
helperText: "Currently only SVG files are accepted",
},
This same behavior is NOT present if you choose to allow png instead of jpg.
Is this inability/required workaround to upload SVG by url the new intended behavior?