Add upload handler and upload callback