F
Filament12mo ago
wyn

Preview images from S3

Hello! I'm working on an app that uploads my product images to s3. But on edit page of the specific product, how can i manage to see the images? Do i need to manually download the images from s3 ? I didn't see anything regarding this on docs.
1 Reply
wyn
wynOP12mo ago
>schema([ FileUpload::make('media') ->disk('s3') ->imageEditorAspectRatios([ null, '16:9', '4:3', '1:1', ]) ->imageEditor() ->multiple() ->visibility('private') ->maxFiles(5) ]) ->collapsible(), Found the answer, you have to pass the name (with the folder prefix if you have one) to do that you can go to EditResource override mutateFormDataBeforeFill and add the prefix for each file, then it will be generated a s3 temporary link and you ll be able to preview it
Want results from more Discord servers?
Add your server