php check both, upload_max_filesize and post_max_size, when uploading a file so we should do the same when figuring out the maximum size. Signed-off-by: Florian Pritz <bluewind@xinu.at>