be more restrive about uploadstream datatypes