Implement upload method.