Add upload code.