F
Filament9mo ago
Tjiel

Image saved to AWS bucket not displayed on infolist.

Hey all, I have a form with the fileupload:
Forms\Components\FileUpload::make('banner')
->label('Banner')
->translateLabel()
->image()
->acceptedFileTypes(['image/*'])
->maxSize(4096)
->disk('s3')
->directory('events/banners'),
Forms\Components\FileUpload::make('banner')
->label('Banner')
->translateLabel()
->image()
->acceptedFileTypes(['image/*'])
->maxSize(4096)
->disk('s3')
->directory('events/banners'),
When submitting it seems to be working fine, the problem is that whenever I go to the view page, the image is not displaying. When inspecting, the img element doesn't have an src (<img src style="). This is what im trying in my infolist:
ImageEntry::make('banner')
->label('Banner')
->translateLabel()
->disk('s3')
->columnSpan(2),
ImageEntry::make('banner')
->label('Banner')
->translateLabel()
->disk('s3')
->columnSpan(2),
So if anyone knows a possible solution, please let me know. If i should clarify some more, please let me know and I'm happy to do so.
1 Reply
Tjiel
TjielOP9mo ago
Update: I have changed some things and currently when uploading the file upload loading circle is not making progress. Also after selecting a file to upload an error about cors occurs.

Did you find this page helpful?