Should export `wgMaxUploadSize` to the client and use it here