F
Filament3mo ago
Glebka

ttp://vf.test/livewire/upload-file?expires=1722885986&signature=ebe591d90830e2a98241184850295c95095a

Good evening! I am trying to set up file upload for a local development, right now I don't have a server. I am receiving an error that something wrong with livewire file upload in a filament 3 application. I had seen this error before on the internet, but I dont have php.ini or TrustProxy middleware so I dont know how to fix it. My file upload is a default filament 3 file upload. Maybe it will helps if i would say that I am using valet for my application development on linux 20.04. Error shows up at around 2.5MB of file size, smaller files uploads well. Thanks!
No description
No description
Solution:
I also use Valet so : I ran
valet on-latest-version
valet on-latest-version
and found I was down-level so I ran
composer global require laravel/valet
composer global require laravel/valet
and
valet install
valet install
per the instruction to get to the newest version now run
valet which-php
valet which-php
...
Jump to solution
2 Replies
Solution
ddoddsr
ddoddsr3mo ago
I also use Valet so : I ran
valet on-latest-version
valet on-latest-version
and found I was down-level so I ran
composer global require laravel/valet
composer global require laravel/valet
and
valet install
valet install
per the instruction to get to the newest version now run
valet which-php
valet which-php
which gets you the php path used by Valet mine was
/usr/local/bin/php
/usr/local/bin/php
So I ran
/usr/local/bin/php --ini
/usr/local/bin/php --ini
which shows the ini files used. mine shows where I can find it
grep upload_max /usr/local/etc/php/8.3/php.ini
grep upload_max /usr/local/etc/php/8.3/php.ini
and see that it is set to 2M (in my case)
upload_max_filesize = 2M
upload_max_filesize = 2M
ddoddsr
ddoddsr3mo ago
You can edit that file and restart with
valet restart
valet restart
Want results from more Discord servers?
Add your server