add client upload endpoint
fix client upload endpoint