custom upload fix