upload redirect bug patch