core: Make uploads compatible with changes in z_string