Removed duplicate method

Fixed potential issue where the form encoding could be wrong if upload
fields are not present on the parent form