MDL-40039 webservices: Add support for alternate to contextid parameter to core_files_external::upload()