test upload code