Improve js and python variable names
Add i18n for upload file size error message
Remove unused argument variable "d"
Indent arguments and add trailing comma
Mock file size and add sm/md/lg file upload tests.