Jsonifies /api/upload response