BUG UploadField: move replaceFile to the front end config - fixes #2920