Upload now returns json instead of html