Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Jsanwo64's avatar

Livewire PDF upload 401 Unauthorized Error

I tried uploading a pdf and i keep getting the errro only for pdf upload.

0 likes
5 replies
Jsanwo64's avatar

Also i am running it locally using Herd and Ngrok

Jsanwo64's avatar

so the error in console.log is

XHRPOST
https://128f0802e8d6.ngrok-free.app/livewire/upload-file?expires=1752762691&signature=83c05d8137ffd9c28d27626e1fe50daea0e1e3a4680634e31c8c2bc0533967fa
[HTTP/2 401  442ms]

in ngrok i get the error too

15:25:52.111 WAT POST /livewire/upload-file                                       401 Unauthorized           

Please or to participate in this conversation.