Need to determine encoding for upload