API UploadField: move replaceFile to the front end config