method

connect

connect(path, host, account, password)
public

Create an uploader and pass it to the given block as up. When the block is complete, close the uploader.