Senne
Fill FileUpload with generated images
Im trying to fill a FileUpload field with an image I generate using OpenAI's Dall e
I added the required FileUpload field to my schema and I added the action to generate the image. This action uses a form to ask the user for a prompt:
I already prepared the controller for generating the image and downloading it into storage:
I already tried to set the ai_image field using the Set method, but this didn't work. Is this possible in Filament? The ultimate goal is to generate the image and show it in the FileUpload preview, so the user can see it before saving.
5 replies