upload fix for Spaces