I love the image block feature and the uploadFile method in the editor that allows you to define a custom function for uploading images to your server. To improve on this, I wish there would be an equivalent deleteFile callback invoked when the image block is deleted so we can delete the image from our database to save resources. I also think that defining the image as just a public URL is not the most secure, and we could also define a getFile method that will allow developers to define a custom function to retrieve a signed URL that expires after a certain duration.
I love the image block feature and the
uploadFilemethod in the editor that allows you to define a custom function for uploading images to your server. To improve on this, I wish there would be an equivalentdeleteFilecallback invoked when the image block is deleted so we can delete the image from our database to save resources. I also think that defining the image as just a public URL is not the most secure, and we could also define agetFilemethod that will allow developers to define a custom function to retrieve a signed URL that expires after a certain duration.