Finding bug in upload encoding