throw Exception on upload failure