test getting piece id on upload