FileUpload edit picsum.photos

hi all, i've simply this in my form:
return $form
->schema([
FileUpload::make('cover_img')
->label('Immagine di copertina')
->helperText('max 2MB')
->image()
->directory('castings')
->maxSize(2048)
->required(),
...
return $form
->schema([
FileUpload::make('cover_img')
->label('Immagine di copertina')
->helperText('max 2MB')
->image()
->directory('castings')
->maxSize(2048)
->required(),
...
But in the seeder i've used picsum.photos to fill the cover_img field. And so i've values like this: https://picsum.photos/id/2/640/343 In this scenario when i try to edit i've a message error, in the image. It's possibile to skip this?
No description
Solution:
the file needs to exist in the storage disk, not a url
Jump to solution
2 Replies
Solution
Dan Harrin
Dan Harrin7mo ago
the file needs to exist in the storage disk, not a url
ocram82
ocram82OP7mo ago
perfect, thanks
Want results from more Discord servers?
Add your server