How to adjust max attachment size more than 1 M?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
alex.wu
Posts: 3
Joined: Wed Jul 12, 2017 7:58 am

How to adjust max attachment size more than 1 M?

Post by alex.wu »

I have tried to adjust max attachment size more than 1M via control panel but no use. Could anyone tell me how to modify the php code in order to support larger attachment. Thanks a lot. :D
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to adjust max attachment size more than 1 M?

Post by Thorsten »

Hi,

you have to change the setting in your php.ini file if there's a restriction, too.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
alex.wu
Posts: 3
Joined: Wed Jul 12, 2017 7:58 am

Re: How to adjust max attachment size more than 1 M?

Post by alex.wu »

Hi,Thorsten

First thank you for your kindly reply. I had changed php.ini with the configuration "upload_max_filesize = 32M" but no use. Could you give me further idea on this issue? Thanks so much for your help.

Kindly Regards
Alex
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to adjust max attachment size more than 1 M?

Post by Thorsten »

Hi Alex,

did you restart your webserver?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
alex.wu
Posts: 3
Joined: Wed Jul 12, 2017 7:58 am

Re: How to adjust max attachment size more than 1 M?

Post by alex.wu »

Hi,Thorsten

I had restarted the http server(apache) but no use.

Kindly Regards,
Alex
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to adjust max attachment size more than 1 M?

Post by Thorsten »

Hi,

I re-checked the PHP manual, you need to change two values:

Code: Select all

post_max_size=20M
upload_max_filesize=20M
Sorry!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply