F
Filamentβ€’2mo ago
frame

v4 Rich editor images are stored as blobs in database

What am I missing if images I drag and drop into a rich editor are stored as blobs alongside other content in the database column, and not uploaded to storage as image files? πŸ€”
"content": [{"type": "image", "attrs": {"id": null, "alt": null, "src": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD...etc
"content": [{"type": "image", "attrs": {"id": null, "alt": null, "src": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD...etc
I used this setup except public instead of private https://filamentphp.com/docs/4.x/forms/rich-editor#uploading-images-to-the-editor
5 Replies
frame
frameOPβ€’2mo ago
Oh that was not it, you are supposed to upload images using the "Attach files" button. I need to figure out how to disable drag-and-drop in the rich editor to avoid confusion πŸ€”
Lederp
Lederpβ€’2mo ago
@Dan Harrin Can we do something about this? The previous rich editor supported pasting and dragging of images directly into the message box and they would be uploaded, now it seems to try and store it as a blob.
Dan Harrin
Dan Harrinβ€’2mo ago
please open an issue with a reproduction repository
Lederp
Lederpβ€’2mo ago
The base implementation causes this issue - just copy and paste an image into the text area, it'll try and store in the database as opposed to uploading, using the attach file option uploads it as expected
Dan Harrin
Dan Harrinβ€’2mo ago
I know, but Discord is not a place to track bugs. Its not on my todo list. You can add it to my todo list by opening an issue with a reproduction repository.

Did you find this page helpful?