rewind IO before reading for upload