Use upload_max_filesize instead of post_max_size the word upload is in the name of this parameter making it more intuitive.