Fix handling of boolean parameters on upload