Uploading in create page is fine. But, cors error in edit page while fetching image from s3.
![No description](https://cdn.answeroverflow.com/1166223674819489894/Screenshot_2023-10-24_at_10.03.52.png)
2 Replies
I found a github discussion that might help you out
https://github.com/filamentphp/filament/discussions/5485
GitHub
CORS error using FileUpload with Laravel Sail and Share · filamentp...
I have a FileUpload form component as follows: Forms\Components\FileUpload::make('images') ->image() ->columnSpan('full') ->maxSize(1024) ->multiple() ->maxFiles(5) -...
"For s3 storage and the like. Ensure the external storage (like cdn.websitename.com) actually sets the cors headers. Because filepond uses a canvas and doesn't include the image with an <img> tag the images get blocked when there are no cors headers. This is not very common for displaying images in an admin area so it took me a while to figure this out. Setting the cors headers differs per s3 (or similar) provider, but in my case it looks like this"
![No description](https://cdn.answeroverflow.com/1166599554544701440/227713287-6f33dc59-4ead-4653-a08e-291868d8d6a0.png)