connect old upload code