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

andyandy's avatar

Livewire can't upload a file

I have simple code:

<input type="file" wire:model="uploadCompanyLogo">

And when I select a file (looking into developer console in browser) I get following failing request:

http://127.0.0.2/livewire/upload-file?expires=1714924440&signature=87c95753c3e5e35c54890133d3857d46f3dee8f4902a26ce3ddc03b9eeeed65b

(failed)net::ERR_ACCESS_DENIED	

And nothing happens.

0 likes
2 replies
andyandy's avatar

But other similar Livewire requests run ok:

http://127.0.0.2/livewire/update

200 OK
andyandy's avatar
andyandy
OP
Best Answer
Level 4

OK. I'm on Linux and I was trying to upload pictures from folder that belongs to www-data. Which caused this error. But when I tried to upload files that are stored at the Desktop or some folder that belongs to me it doesn't throw this error. So it seems like some kind of browser protection.

Please or to participate in this conversation.