RichEditor -> Image upload not working - none errors are shown :/

RichEditor::make('rich_text')
->fileAttachmentsDisk('s3')
RichEditor::make('rich_text')
->fileAttachmentsDisk('s3')
so when i remove the line "->fileAttachmentsDisk('s3')", it works perfectly. but when i add it, the image just doesnt upload. it stays there with this gray line and it doesnt do anything, no errors at all (no console errors, no validation errors, no backend errors). and yeah, the image is pretty small (500 x 500 px) and idk how to debug it to make it work objective: store RichEditor's files into my s3 bucket
No description
8 Replies
ericmp #2
ericmp #27mo ago
related docs im following (CTRL + F "->fileAttachmentsDisk('s3')"): https://filamentphp.com/docs/2.x/forms/fields
toeknee
toeknee7mo ago
Sounds like S3 isn't configured correctly, or you can't get a url to view it and it is falling over.
ericmp #2
ericmp #27mo ago
in other components it works just fine, like this one:
SpatieMediaLibraryFileUpload::make('image')
->disk('s3')
SpatieMediaLibraryFileUpload::make('image')
->disk('s3')
i tried to use the 2 last functions properly too (fileAttachmentsDirectory & fileAttachmentsVisibility), but does the same:
RichEditor::make('rich_text')
->fileAttachmentsDisk('s3')
->fileAttachmentsDirectory('attachments')
->fileAttachmentsVisibility('private')
RichEditor::make('rich_text')
->fileAttachmentsDisk('s3')
->fileAttachmentsDirectory('attachments')
->fileAttachmentsVisibility('private')
any ideas why is not working? ^^
toeknee
toeknee7mo ago
What is the browser console showing?
ericmp #2
ericmp #27mo ago
nothing no errors its kinda weird it just dont store them without saying anything u add images, u store, and then, when u open again the rich editor and u see that the images that u did put arent there the text yes, is stored with success but imgs, no
toeknee
toeknee7mo ago
Please create a reporduction repository with the least about of code possible for us to re-create it to see.
ericmp #2
ericmp #27mo ago
id like to, but cant :/ i have other bugs to solve ill close it for now, thanks for the answers
toeknee
toeknee7mo ago
👍