Uploading in create page is fine. But, cors error in edit page while fetching image from s3.

No description
2 Replies
tuto1902
tuto19028mo ago
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) -...
tuto1902
tuto19028mo ago
"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