ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentโ€ข3y agoโ€ข
1 reply
Sjoerd24

Richeditor problem, images do upload when marked private but not public?

I have a strange problem, and I also found others with the issue (โ“โ”ŠhelpRichEditor -> Image upload not working - none errors are shown :/). So the problem is:
If I use the following code:
Forms\Components\RichEditor::make('content')
                            ->fileAttachmentsDisk('s3-public')
                            ->fileAttachmentsDirectory('protocol_files')
                            ->fileAttachmentsVisibility('private')
Forms\Components\RichEditor::make('content')
                            ->fileAttachmentsDisk('s3-public')
                            ->fileAttachmentsDirectory('protocol_files')
                            ->fileAttachmentsVisibility('private')

Images are uploaded to my bucket and visible for like 5 minutes or something. (temp url expires, file stays in the bucket) Not very useful, but if I use the following:
Forms\Components\RichEditor::make('content')
                            ->fileAttachmentsDisk('s3-public')
                            ->fileAttachmentsDirectory('protocol_files')
                            ->fileAttachmentsVisibility('public')
Forms\Components\RichEditor::make('content')
                            ->fileAttachmentsDisk('s3-public')
                            ->fileAttachmentsDirectory('protocol_files')
                            ->fileAttachmentsVisibility('public')

The file is not uploaded or added the content field. I don't get any errors which make debugging a lot harder. If I use SpatieMediaLibrary I can upload files to the s3-public bucket so the connection should be working (as is also evident in the fact if I mark them private it also does work).

Is this a filament bug? I already looked through the source code of filament but my skill is insufficient to comprehend. ๐Ÿ˜… I will try to make a bugreport if others have the same problem!

Edit: just tried out TinyEditor plugin (https://github.com/mohamedsabil83/filament-forms-tinyeditor/blob/2.x/docs/usage-and-customization.md) and exactly the same behaviour! I think they use filament under the hood for uploading the images?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel โ€ข Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Disable RichEditor images
FilamentFFilament / โ“โ”Šhelp
5mo ago
RichEditor S3 private visibility
FilamentFFilament / โ“โ”Šhelp
2y ago
Private images
FilamentFFilament / โ“โ”Šhelp
3y ago