RichEditor S3 private visibility

If you are uploading attatchments with RichEditor and are using private visbility, the whole url, including the expire signature is included in the url. This will cause the url-link to expire after a while. I guess this is a bug, but i haven´t debuged the Filament intrnals.

Form input example:
RichEditor::make('description') ->label('Beskrivelse') ->columnSpanFull() ->fileAttachmentsDisk('s3') ->fileAttachmentsDirectory(Filament::getTenant()->id . '/' . 'tasks') ->fileAttachmentsVisibility('private'),

Url stored in the text-field:
https://yourS3path.amazonaws.com/path/sub-path/filename.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=randomnumnber%2Feu-north-1%2Fs3%2Faws4_request&X-Amz-Date=20240705T135351Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Signature=randomsignature

Is there any workaround to get this working, or should it be reported as a bug?
Was this page helpful?