You need to increase post_max_size as well.
To upload large files, this value must be larger than upload_max_filesize
You may also need to increase memory_limit
If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.
As others have pointed out, upload_max_filesize
cannot be changed at runtime (using ini_set
). However, once you have changed it correctly you will still need to increase these values.