I am unable to upload images after deploying Filament Admin panel on server
I’ve deployed my Laravel app on a DigitalOcean server, but I’ve had to use a slightly different folder structure for the public and other Laravel files:
Public files:
Laravel app files:
My web URL is:
I’ve also set custom routes for Livewire as it was throwing a 404 due to the structure:
These changes have resolved my issues with Livewire, but now I’m encountering an “Unauthorized” error when trying to upload images via the Filament panel. The issue occurs on the
Public files:
https://example.com/html/my-project/my-first-filament-app/Laravel app files:
https://example.com/laravel/my-project/My web URL is:
https://example.com/my-first-filament-app/. I’ve updated the public path and app bindings to reflect this structure, and everything works fine so far. I’ve also set custom routes for Livewire as it was throwing a 404 due to the structure:
These changes have resolved my issues with Livewire, but now I’m encountering an “Unauthorized” error when trying to upload images via the Filament panel. The issue occurs on the
/livewire/upload-file endpoint.
