Add upload-document script. Hopefully it works.