No longer able to upload SVG by URL directly

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",
},

image
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",
},

image
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?

Hi @Sevrene,

Thanks for bringing this to our attention, we are able to reproduce this from our end and a ticket has been raised for adding this feature. I’ll try to update you as soon as we have any insights on this.

For now, as a workaround, to upload svg file type, you can use all file types. Thank you!