Changing default upload document ajax to overwrite. see #7244
Minor - format code.