ahmedX33's avatar

upload file error

i have this error Error: Illuminate\Http\Exceptions\PostTooLargeException what i try change the php.ini file to increase post max size upload max file size memory limitand still have the error could any one help me

0 likes
9 replies
Mahmoud04's avatar

I cannot determine the problem. Are you using livewire?

1 like
ahmedX33's avatar

@Mahmoud04 no it just Laravel but i want to upload file more than 2m so i change the php.ini and increase the post max size upload max file size memory limit and still facing the same issue

aleahy's avatar

Did you restart the php server?

1 like
ahmedX33's avatar

@aleahy i even restart the pc and still not working even when i check phpinfo() on separate file it shows that the change i made on the php.ini on post max size upload max file size memory limit take place but i dont know what else to do

Tray2's avatar

@ahmedX33 There are usually two php.ini files, one for the command line and one for the server, make sure you updated the correct one.

2 likes
ahmedX33's avatar

@Tray2 i made changes on both and run phpinfo() and make sure that the PHP config has been changed

ahmedX33's avatar

thanks for every one tried to help i fix the problem which was on the .htaccess i was putting the new values for the file size in incorrect way

Please or to participate in this conversation.