Updated broken upload script