Fix FileUploader class when not specifying the 'context' key of the 'file-upload' key in a definition file

Fix adding a record to the path field and avoid outputting error messages when not specifying the 'context' key of the 'file-upload' key in a definition file, and fix spelling not to call an incorrect method in FileUploader class.