1

I wanted to upload files greater than 2MB and I have changed php.ini as follows :

upload_max_filesize=20M
post_max_size=30M

Restarting Apache updates phpinfo() but files greater than 2MB are not yet being uploaded. What could be the reason?

eebbesen
  • 5,070
  • 8
  • 48
  • 70
shikharsaxena30
  • 155
  • 2
  • 3
  • 13
  • Are you sure that you updated `php.ini` for apache? Maybe you updated for `php.ini` for cli? – NHG Feb 10 '14 at 14:28
  • 1
    try changing max_execution_time in php.ini and also write permission of the folder in which you are uploading – Dimag Kharab Feb 10 '14 at 14:28

2 Answers2

2

Check that you updated the right php.ini, some servers accept having a php.ini for a certain folder

Shaho
  • 438
  • 3
  • 7
1

A similar question: Photo upload not uploading files bigger than 2MB

Basically you have to modify your php server's configuration as the link shows to you

Community
  • 1
  • 1
SupimpaAllTheWay
  • 1,308
  • 3
  • 16
  • 22