add upload method