make upload method