Delete images added via Rich Text Editor

I’m building an app that benefits a lot from the rich text editor. One problem - deleting text contents doesn’t delete the uploaded and stored files.

This is a bigger problem as Bubble charges for storage, but also the ‘File manager’ interface given as a workaround does not indicate where a file is being used in this case (and many others but that’s a separate problem).

Users change their minds about images and sometimes even will need to delete the record a Rich Text field input to. So even if it was possible to find delete files manually from the ‘File manager’, this wouldn’t be practical.

Has anyone figured out a way to automatically pull out file Amazon URL’s to use the ‘Delete an uploaded file’ functionality? e.g. all images will look something like this: https://s3.amazonaws.com/appforest_uf//richtext_content.png or https://s3.amazonaws.com/appforest_uf//richtext_content.jpg

And it’s possible to add multiple files, so I’m assuming if the information can be pulled from the description, it will need to be fed into a backend workflow somehow. I’m just not sophisticated enough in Bubble to figure this out yet.

Has anyone figured this out? I’m facing the same issue at the moment, not sure how to find and delete all images uploaded by a specific user.

Also wondering: does using an external database like Xano or Wasabi to store everything make this easier? And can the rich text editor be connected to an external database so that all images uploaded through it are stored there by default?

@duracel If the element could output an event like “Rich Text Editor just uploaded file” then that would be perfect to grab the file/URL and store it later.

I just tried it now, it saves the file to the File Manager as expected, but even worse is it puts the Base64 content of the image with no URL at all… :man_facepalming:

Use a different RTE plugin which proper file support (if it exists)…

Using Wasabi for storage would require an extra step AFTER upload of transferring to that, then deleting from Bubble file storage. (so even more complicated basically)

1 Like