Having the overriding callback function for the edit page in a separate file breaks file uploading.