F
Filament13mo ago
MrPan

Error 401 on upload in Filament Admin

Log file at: https://paste.laravel.io/6d98bbfc-28ec-44b1-8774-99f012e06cc0 Getting an 401 on the XHR request made to /livewire/upload-file/ and not sure how to debug why it's happening. The log file doesn't really tell me a better reason, but been fiddling with CSRF if that could be the bad guy? Same problem locally (Valet) and published to a dev server (ubuntu). Not had this issue before and tried both normal FileUpload and SpateMediaFile with same error. I see the preview, but says "Error during upload"
2 Replies
msalehi
msalehi9mo ago
I have the same problem with laravel 10 on octane and swoole, on production environment. i already used forceScheme in my boot() method in AppServiceProvider and set the $proxies in TrustProxies middleware but has no effect. i'm also using nginx and reverse proxy in production .. has anyone any solution? i have no problem in my local environment
msalehi
msalehi9mo ago
my problem solved. actually it was because of my proxy pass in nginx that solved with this one line of code :
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Proto https;
source: https://github.com/livewire/livewire/discussions/3084
GitHub
File upload over https fails signature verification · livewire live...
Fille uploads doesn't work over https, whereas it works perfectly over http Set up livewire file upload, then use https (e.g. with ngrok) the upload fails with the request to Request URL: https...