add legacy upload method