Uploading to S3 through Rich Text Editor Fails silently

I have a Rich Text Editor field which can accept images. I have my field setup like this
Forms\Components\RichEditor::make('content')
->fileAttachmentsDisk('s3')
->fileAttachmentsDirectory('path/to/images')
->required(),
]),
Forms\Components\RichEditor::make('content')
->fileAttachmentsDisk('s3')
->fileAttachmentsDirectory('path/to/images')
->required(),
]),
I've also tried, both ->fileAttachmentsVisibility('private') and ->fileAttachmentsVisibility('public') with same results. I've also set my config/livewire.php to upload directly to S3 instead of locally. This is working fine. I can see the imags in livewire-tmp folder as soon as I add the image to the Rich Text Editor, however, when saving the content nothing happens. No image is present in the directory specified above. The content in the database does not reflect anything for the image either.
Now, directly below this field, I have a FileInput field
Forms\Components\FileUpload::make('featured_image')
->image()
->imageEditor()
->disk('s3')
->directory('path/to/images')
->visibility('private')
->moveFiles()
Forms\Components\FileUpload::make('featured_image')
->image()
->imageEditor()
->disk('s3')
->directory('path/to/images')
->visibility('private')
->moveFiles()
This works just fine. The path is the same path that is being used for the RichEditor. I don't understand why it will not work for one but not the other. What's teh difference between the two when it comes to file upload / storage?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?