Did you find a solution to this? I am experiencing the same problem. I followed the instructions given on
https://www.dokuwiki.org/faq:uploadsize, but no matter where I put which line of code, according to the media manager, I am supposed to be limited to 2MB upload, while I am perfectly able to upload bigger files.
I am using nginx on Debian 6 / Bananian.