R: upload impl.